diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-12-06 23:00:58 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-12-06 23:00:58 -0500 |
commit | 7f3bf38e8db9288d92f2864be4f66b14adf80971 (patch) | |
tree | 57c5d31876ba50c1674736493f58d9ab4e59474b /doc/plugin-hooks.markdown | |
parent | 5c84996ee7140e2cff1d8e18fb9482e8a4c020a8 (diff) |
Fix typo in documentation
Diffstat (limited to 'doc/plugin-hooks.markdown')
-rw-r--r-- | doc/plugin-hooks.markdown | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/plugin-hooks.markdown b/doc/plugin-hooks.markdown index 49323067..733e201f 100644 --- a/doc/plugin-hooks.markdown +++ b/doc/plugin-hooks.markdown @@ -16,13 +16,13 @@ $this->hook->on('hook_name', $callable); The first argument is the name of the hook and the second is a PHP callable. -### Hooks executed only one time +### Hooks executed only once Some hooks can have only one listener: #### model:subtask-time-tracking:calculate:time-spent -- Override time spent calculation when subtask timer is stopped +- Override time spent calculation when sub-task timer is stopped - Arguments: - `$user_id` (integer) - `$start` (DateTime) @@ -58,7 +58,7 @@ class Plugin extends Base } ``` -List of merge hooks: +List of merging hooks: #### controller:calendar:project:events @@ -79,7 +79,7 @@ List of merge hooks: Asset Hooks ----------- -Asset hooks can be used to add easily a new stylesheet or a new javascript file in the layout. You can use this feature to create a theme and override all Kanboard default styles. +Asset hooks can be used to add a new stylesheet easily or a new JavaScript file in the layout. You can use this feature to create a theme and override all Kanboard default styles. Example to add a new stylesheet: @@ -127,7 +127,7 @@ Example with `myplugin:dashboard/sidebar`: - On the filesystem, the plugin will be located here: `plugins\Myplugin\Template\dashboard\sidebar.php` - Templates are written in pure PHP (don't forget to escape data) -Template name without prefix are core templates. +Template names without prefix are core templates. List of template hooks: @@ -151,4 +151,4 @@ List of template hooks: - `template:user:sidebar:information` - `template:user:sidebar:actions` -Other template hooks can be added if necessary, just ask on the issue tracker. +Another template hooks can be added if necessary, just ask on the issue tracker. |