You are here

function faq_pathauto in Frequently Asked Questions 7.2

Same name and namespace in other branches
  1. 5.2 faq.module \faq_pathauto()
  2. 6 faq.module \faq_pathauto()
  3. 7 faq.module \faq_pathauto()

Implements hook_pathauto().

File

./faq.module, line 1309
The FAQ module allows users to create a FAQ page, with questions and answers displayed in different styles, according to the settings.

Code

function faq_pathauto($op) {
  switch ($op) {
    case 'settings':
      $settings = array();
      $settings['module'] = 'faq';
      $settings['groupheader'] = t('FAQ category page settings');
      $settings['patterndescr'] = t('Default path pattern (applies to all FAQ categories with blank patterns below)');
      $settings['patterndefault'] = t('faq-page/[term:tid]');
      $settings['batch_update_callback'] = 'faq_pathauto_bulkupdate';
      $settings['token_type'] = 'term';

      // @codingStandardsIgnoreStart
      return (object) $settings;

    // @codingStandardsIgnoreEnd
    default:
      break;
  }
}