You are here

function pathauto_patterns in Patterns 7

Same name and namespace in other branches
  1. 5 components/pathauto.inc \pathauto_patterns()
  2. 6.2 components/pathauto.inc \pathauto_patterns()
  3. 6 components/pathauto.inc \pathauto_patterns()
  4. 7.2 patterns_components/components/pathauto.inc \pathauto_patterns()
1 call to pathauto_patterns()
pathauto_patterns_callbacks in patterns_components/components/pathauto.inc
1 string reference to 'pathauto_patterns'
pathauto_patterns_prepare in patterns_components/components/pathauto.inc

File

patterns_components/components/pathauto.inc, line 6

Code

function pathauto_patterns() {
  $files = array(
    'sites/all/modules/pathauto/pathauto.admin.inc',
    'modules/path/path.admin.inc',
  );
  $actions['pathauto'] = array(
    PATTERNS_INFO => t('Setting pathauto'),
    PATTERNS_MODIFY => array(
      'pathauto_settings_form',
    ),
    PATTERNS_FILES => $files,
  );
  $actions['url_alias'] = array(
    PATTERNS_INFO => t('Create/Edit/Delete URL aliases'),
    PATTERNS_CREATE => array(
      'path_admin_form',
    ),
    PATTERNS_MODIFY => array(
      'path_admin_form',
    ),
    PATTERNS_DELETE => array(
      'path_admin_delete_confirm',
    ),
    PATTERNS_FILES => $files,
    PATTERNS_EXPORT => array(
      PATTERNS_EXPORT_ALL => 'pathauto_patterns_export_all_url_alias',
    ),
  );
  $actions['pathauto_patterns'] = array(
    PATTERNS_INFO => t('setting patterns for auto URLs aliases'),
    PATTERNS_MODIFY => array(
      'pathauto_patterns_form',
      'pathauto_bulk_update_form',
    ),
    PATTERNS_FILES => $files,
  );
  return $actions;
}