You are here

function view_alias_pathauto in View Alias 6.2

Same name and namespace in other branches
  1. 7 view_alias.module \view_alias_pathauto()

Implementation of hook_pathauto()

File

./view_alias.module, line 13
Hook implementations for view alias module integration.

Code

function view_alias_pathauto($op) {
  switch ($op) {
    case 'settings':
      $settings = array();
      $settings['module'] = 'view_alias';
      $settings['token_type'] = 'view_alias';
      $settings['groupheader'] = t('View Alias settings');
      $settings['patterndescr'] = t('Default View Alias pattern (applies to all views with a term argument and page display)');
      $settings['patterndefault'] = '';
      $settings['bulkname'] = t('Bulk generate aliases for views with term arguments that are not aliased');
      $settings['bulkdescr'] = t('Generate aliases for all existing views with term arguments which do not already have aliases.');

      // left out patterns since we dont use them.
      $settings['placeholders'] = array(
        '[cat-raw]',
        t('The View argument taxonomy name'),
      );
      $settings['patternitems'] = array();
      return (object) $settings;
    default:
      break;
  }
}