function hook_action_info_alter

Alters the actions declared by another module.

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

See also

trigger_example_action_info_alter()

Related topics

1 function implements hook_action_info_alter()

Note: the procedural functions in this list are found by pattern matching, so the list may include some functions that are not actually implementations of this hook.

ContentModerationHooks::actionInfoAlter in core/modules/content_moderation/src/Hook/ContentModerationHooks.php
Implements hook_action_info_alter().
1 invocation of hook_action_info_alter()
actions_list in includes/actions.inc
Discovers all available actions by invoking hook_action_info().

File

modules/system/system.api.php, line 4066

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.