function action_list

Discovers all available actions by invoking hook_action_info().

This function contrasts with action_get_all_actions(); see the documentation of action_get_all_actions() for an explanation.

Parameters

$reset: Reset the action info static cache.

Return value

An associative array keyed on action function name, with the same format as the return value of hook_action_info(), containing all modules' hook_action_info() return values as modified by any hook_action_info_alter() implementations.

See also

hook_action_info()

5 calls to action_list()
actions_do in drupal/core/modules/action/action.module
Performs a given list of actions by executing their callback functions.
action_admin_configure in drupal/core/modules/action/action.admin.inc
Form constructor for the configuration of a single action.
action_admin_manage in drupal/core/modules/action/action.admin.inc
Menu callback; Displays an overview of available and configured actions.
action_function_lookup in drupal/core/modules/action/action.module
Returns an action array key (function or ID), given its hash.
action_synchronize in drupal/core/modules/action/action.module
Synchronizes actions that are provided by modules in hook_action_info().

File

drupal/core/modules/action/action.module, line 244
This is the Actions module for executing stored actions.

Code

function action_list($reset = FALSE) {
  $actions =& drupal_static(__FUNCTION__);
  if (!isset($actions) || $reset) {
    $actions = module_invoke_all('action_info');
    drupal_alter('action_info', $actions);
  }

  // See module_implements() for an explanation of this cast.
  return (array) $actions;
}