Permalink
Browse files

docs(misc): Miscellaneous docs fixes

  • Loading branch information...
mrclay committed Jun 16, 2015
1 parent 2103184 commit 06e3557cd0046bfb601b3345f6f636cdbbb63de9
Showing with 6 additions and 5 deletions.
  1. +2 −4 docs/examples/plugins/languages/en.php
  2. +4 −1 docs/examples/plugins/start.php
@@ -17,8 +17,6 @@
* the language's ISO 639-1 code: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
*/
-$mapping = array(
+return [
'string:here' => 'Display string here',
-);
-
-add_translation('en', $mapping);
+];
@@ -14,7 +14,10 @@ function my_plugin_init() {
elgg_register_action('my_plugin', "$base_dir/my_action.php");
// Extend the main CSS file
- elgg_extend_view('css/elgg', 'my_plugin/css');
+ elgg_extend_view('css/elgg', 'css/my_plugin.css');
+
+ // Require your JavaScript AMD module (view "js/my_plugin.js") on every page
+ elgg_require_js('my_plugin');
// Add a menu item to the main site menu
$item = new ElggMenuItem('my_plugin', elgg_echo('my_plugin:menu'), 'my_url');

0 comments on commit 06e3557

Please sign in to comment.