You are here

function forum_pathauto in Pathauto 7

Same name and namespace in other branches
  1. 5.2 pathauto_taxonomy.inc \forum_pathauto()
  2. 5 pathauto_taxonomy.inc \forum_pathauto()
  3. 6.2 pathauto.module \forum_pathauto()
  4. 6 pathauto_taxonomy.inc \forum_pathauto()

Implements hook_pathauto() for forum module.

File

./pathauto.module, line 975
Main file for the Pathauto module, which automatically generates aliases for content.

Code

function forum_pathauto($op) {
  if ($op == 'settings') {
    $settings = array();
    $settings['module'] = 'forum';
    $settings['token_type'] = 'term';
    $settings['groupheader'] = t('Forum paths');
    $settings['patterndescr'] = t('Pattern for forums and forum containers');
    $settings['patterndefault'] = '[term:vocabulary]/[term:name]';
    $settings['batch_update_callback'] = 'forum_pathauto_bulk_update_batch_process';
    $settings['batch_file'] = drupal_get_path('module', 'pathauto') . '/pathauto.pathauto.inc';
    return (object) $settings;
  }
}