function hook_action_info_alter

Alters the actions declared by another module.

Called by action_list() to allow modules to alter the return values from implementations of hook_action_info().

Related topics

1 invocation of hook_action_info_alter()
action_list in drupal/core/modules/action/action.module
Discovers all available actions by invoking hook_action_info().

File

drupal/core/modules/action/action.api.php, line 82
Hooks provided by the Actions module.

Code

function hook_action_info_alter(&$actions) {
  $actions['node_unpublish_action']['label'] = t('Unpublish and remove from public view.');
}