function uc_catalog_pathauto in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_catalog/uc_catalog.module \uc_catalog_pathauto()
- 6.2 uc_catalog/uc_catalog.module \uc_catalog_pathauto()
Implements hook_pathauto().
File
- uc_catalog/
uc_catalog.pathauto.inc, line 11 - Pathauto hooks.
Code
function uc_catalog_pathauto($op) {
switch ($op) {
case 'settings':
$settings = array();
$settings['module'] = 'uc_catalog';
$settings['token_type'] = 'term';
$settings['groupheader'] = t('Catalog paths');
$settings['patterndescr'] = t('Pattern for catalog pages');
$settings['patterndefault'] = 'catalog/[term:name]';
$settings['supportsfeeds'] = 'feed';
$settings['batch_update_callback'] = 'uc_catalog_pathauto_bulkupdate';
$settings['batch_file'] = drupal_get_path('module', 'uc_catalog') . '/uc_catalog.pathauto.inc';
return (object) $settings;
}
}