/[drupal]/contributions/modules/triggerunlock/triggerunlock.module
ViewVC logotype

Contents of /contributions/modules/triggerunlock/triggerunlock.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Fri Feb 15 14:59:07 2008 UTC (21 months, 1 week ago) by jvandyk
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
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