Parent Directory
|
Revision Log
|
Revision Graph
The triggerunlock module makes all actions available to all triggers.
| 1 | <?php |
| 2 | // $Id$ |
| 3 | |
| 4 | /** |
| 5 | * @file |
| 6 | * Makes all actions available to all triggers. |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * Implementation of action_info_alter(). |
| 11 | */ |
| 12 | function triggerunlock_action_info_alter(&$info) { |
| 13 | foreach (array_keys($info) as $key) { |
| 14 | // Modify each action's hooks declaration, |
| 15 | // changing it to say that the action supports |
| 16 | // any hook. |
| 17 | $info[$key]['hooks'] = 'any'; |
| 18 | } |
| 19 | } |
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |