Patch #9291 ยป redmine-r7431.patch
| redmine/lib/redmine/hook.rb 2011-09-21 11:04:56.618294110 +0300 | ||
|---|---|---|
| 115 | 115 |
end |
| 116 | 116 |
end |
| 117 | 117 | |
| 118 |
# Helper module included in ApplicationHelper and ActionControllerso that |
|
| 118 |
# Helper module included in ApplicationHelper and ActionController so that
|
|
| 119 | 119 |
# hooks can be called in views like this: |
| 120 | 120 |
# |
| 121 | 121 |
# <%= call_hook(:some_hook) %> |
| 122 |
# <%= call_hook(:another_hook, :foo => 'bar' %> |
|
| 122 |
# <%= call_hook(:another_hook, :foo => 'bar') %>
|
|
| 123 | 123 |
# |
| 124 | 124 |
# Or in controllers like: |
| 125 | 125 |
# call_hook(:some_hook) |
| 126 |
# call_hook(:another_hook, :foo => 'bar' |
|
| 126 |
# call_hook(:another_hook, :foo => 'bar')
|
|
| 127 | 127 |
# |
| 128 |
# Hooks added to views will be concatenated into a string. Hooks added to
|
|
| 128 |
# Hooks added to views will be concatenated into a string. Hooks added to |
|
| 129 | 129 |
# controllers will return an array of results. |
| 130 | 130 |
# |
| 131 | 131 |
# Several objects are automatically added to the call context: |