You are here

function workflow_actions_action_info_alter in Workflow 6.2

Same name and namespace in other branches
  1. 6 workflow_actions/workflow_actions.module \workflow_actions_action_info_alter()
  2. 7.2 workflow_actions/workflow_actions.module \workflow_actions_action_info_alter()
  3. 7 workflow_actions/workflow_actions.module \workflow_actions_action_info_alter()

Implementation of action_info_alter().

File

workflow_actions/workflow_actions.module, line 288
Provide actions and triggers for workflows. Why it's own module? Some sites prefer rules, some prefer actions, all prefer a lower code footprint and better performance. Additional creadit to gcassie ( http://drupal.org/user/80260 ) for the…

Code

function workflow_actions_action_info_alter(&$info) {
  foreach (array_keys($info) as $key) {

    // Modify each action's hooks declaration, changing it to say
    // that the action supports any hook.
    $info[$key]['hooks']['any'] = TRUE;
  }
}