1. drupal
    1. 6
    2. 8
    3. 7
6 – 8 actions_get_all_actions()

Retrieves all action instances from the database.

This function differs from the actions_list() function, which gathers actions by invoking hook_action_info(). The actions returned by this function and the actions returned by actions_list() are partially synchronized. Non-configurable actions from hook_action_info() implementations are put into the database when actions_synchronize() is called, which happens when admin/config/system/actions is visited. Configurable actions are not added to the database until they are configured in the user interface, in which case a database row is created for each configuration of each action.

Return value

Associative array keyed by numeric action ID. Each value is an associative array with keys 'callback', 'label', 'type' and 'configurable'.

▾ 3 functions call actions_get_all_actions()

trigger_assign_form in modules/trigger/
Returns the form for assigning an action to a trigger.
trigger_unassign in modules/trigger/
Confirm removal of an assigned action.
trigger_unassign_submit in modules/trigger/
Submit callback for trigger_unassign() form.


includes/, line 188

function actions_get_all_actions() {
  $actions = db_query("SELECT aid, type, callback, parameters, label FROM {actions}")->fetchAllAssoc('aid', PDO::FETCH_ASSOC);
  foreach ($actions as &$action) {
    $action['configurable'] = (bool) $action['parameters'];
  return $actions;