You are here

function blog_pathauto in Pathauto 5

Same name and namespace in other branches
  1. 5.2 pathauto_user.inc \blog_pathauto()
  2. 6.2 pathauto.module \blog_pathauto()
  3. 6 pathauto_user.inc \blog_pathauto()
  4. 7 pathauto.module \blog_pathauto()

Implementation of hook_pathauto() for blog aliases

File

./pathauto_user.inc, line 29

Code

function blog_pathauto($op) {
  switch ($op) {
    case 'settings':
      $settings = array();
      $settings['module'] = 'blog';
      $settings['groupheader'] = t('Blog path settings');
      $settings['patterndescr'] = t('Pattern for blog page paths');
      $settings['patterndefault'] = t('blog/[user]');
      $settings['placeholders'] = array(
        t('[user]') => t('The name of the user.'),
        t('[uid]') => t('The id number of the user.'),
      );
      $settings['supportsfeeds'] = 'feed';
      $settings['bulkname'] = t('Bulk update blog paths');
      $settings['bulkdescr'] = t('Generate aliases for all existing blog pages which do not already have aliases.');
      return (object) $settings;
    default:
      break;
  }
}