summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBusfreak <martin@middeke.de>2016-09-05 18:39:08 +0200
committerBusfreak <martin@middeke.de>2016-09-05 18:39:08 +0200
commit72e50841609bb13afcb95c77e6536c9b20029141 (patch)
tree04c955c40cee8e796d39a3d74ae3e4cb19bc85b1
parent0e154db422508f657e88a2bbe7762df2dc31ca0d (diff)
Hook in ColorModel->getList
-rw-r--r--app/Model/ColorModel.php2
-rw-r--r--doc/plugin-hooks.markdown1
2 files changed, 3 insertions, 0 deletions
diff --git a/app/Model/ColorModel.php b/app/Model/ColorModel.php
index 9e69dda2..9fa7ff85 100644
--- a/app/Model/ColorModel.php
+++ b/app/Model/ColorModel.php
@@ -154,6 +154,8 @@ class ColorModel extends Base
$listing[$color_id] = t($color['name']);
}
+ $this->hook->reference('model:color:get-list', $listing);
+
return $listing;
}
diff --git a/doc/plugin-hooks.markdown b/doc/plugin-hooks.markdown
index b5d25a40..b3272d73 100644
--- a/doc/plugin-hooks.markdown
+++ b/doc/plugin-hooks.markdown
@@ -140,6 +140,7 @@ List of reference hooks:
| `pagination:dashboard:subtask:query` | Alter database query for subtasks pagination on the dashboard |
| `model:task:creation:prepare` | Alter form values before to save a task |
| `model:task:modification:prepare` | Alter form values before to edit a task |
+| `model:color:get-list` | Alter default_colors values |
Template Hooks