1 redirect.api.php hook_redirect_operations()

Provide additional operations that may be done on redirects.

Return value

array: An array of callback information for executing the operation.

Related topics

File

core/modules/redirect/redirect.api.php, line 290
Hooks provided by the Redirect module.

Code

function hook_redirect_operations() {
  // Example from redirect_redirect_operations():
  $operations['delete'] = array(
    'action' => t('Delete'),
    'action_past' => t('Deleted'),
    'callback' => 'redirect_delete_multiple',
    'confirm' => TRUE,
  );
  return $operations;
}