You are here

function _forum_pathauto in Pathauto 6.2

Implements hook_pathauto() for forum module.

1 call to _forum_pathauto()
forum_pathauto in ./pathauto.module
Implements hook_pathauto() on behalf of forum.module.

File

./pathauto.pathauto.inc, line 169
Pathauto integration for core modules.

Code

function _forum_pathauto($op) {
  switch ($op) {
    case 'settings':
      $settings = array();
      $settings['module'] = 'forum';
      $settings['token_type'] = 'taxonomy';
      $settings['groupheader'] = t('Forum paths');
      $settings['patterndescr'] = t('Pattern for forums and forum containers');
      $settings['patterndefault'] = '[vocab-raw]/[catpath-raw]';
      $settings['batch_update_callback'] = 'forum_pathauto_bulk_update_batch_process';
      $settings['batch_file'] = drupal_get_path('module', 'pathauto') . '/pathauto.pathauto.inc';
      return (object) $settings;
    default:
      break;
  }
}