@@ -115,17 +115,17 module Redmine | |||||
115 | end |
|
115 | end | |
116 | end |
|
116 | end | |
117 |
|
117 | |||
118 | # Helper module included in ApplicationHelper and ActionControllerso that |
|
118 | # Helper module included in ApplicationHelper and ActionController so that | |
119 | # hooks can be called in views like this: |
|
119 | # hooks can be called in views like this: | |
120 | # |
|
120 | # | |
121 | # <%= call_hook(:some_hook) %> |
|
121 | # <%= call_hook(:some_hook) %> | |
122 | # <%= call_hook(:another_hook, :foo => 'bar' %> |
|
122 | # <%= call_hook(:another_hook, :foo => 'bar') %> | |
123 | # |
|
123 | # | |
124 | # Or in controllers like: |
|
124 | # Or in controllers like: | |
125 | # call_hook(:some_hook) |
|
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. |
|
128 | # Hooks added to views will be concatenated into a string. Hooks added to | |
129 | # controllers will return an array of results. |
|
129 | # controllers will return an array of results. | |
130 | # |
|
130 | # | |
131 | # Several objects are automatically added to the call context: |
|
131 | # Several objects are automatically added to the call context: |
General Comments 0
You need to be logged in to leave comments.
Login now