1 path.module path_action_info()

Implements hook_action_info().

File

core/modules/path/path.module, line 209
Enables users to customize URLs and provide automatic URL alias patterns.

Code

function path_action_info() {
  $info['path_node_update_action'] = array(
    'type' => 'node',
    'label' => t('Update content URL alias'),
    'callback' => 'path_save_automatic_entity_alias',
    'file' => 'path.inc',
  );
  $info['path_taxonomy_term_update_action'] = array(
    'type' => 'taxonomy_term',
    'label' => t('Update taxonomy term URL alias'),
    'callback' => 'path_save_automatic_entity_alias',
    'file' => 'path.inc',
  );
  $info['path_user_update_action'] = array(
    'type' => 'user',
    'label' => t('Update user URL alias'),
    'callback' => 'path_save_automatic_entity_alias',
    'file' => 'path.inc',
  );

  return $info;
}