function blog_pathauto in Pathauto 7
Same name and namespace in other branches
- 5.2 pathauto_user.inc \blog_pathauto()
- 5 pathauto_user.inc \blog_pathauto()
- 6.2 pathauto.module \blog_pathauto()
- 6 pathauto_user.inc \blog_pathauto()
Implements hook_pathauto() on behalf of blog module.
File
- ./
pathauto.module, line 1147 - Main file for the Pathauto module, which automatically generates aliases for content.
Code
function blog_pathauto($op) {
if ($op == 'settings') {
$settings = array();
$settings['module'] = 'blog';
$settings['token_type'] = 'user';
$settings['groupheader'] = t('Blog paths');
$settings['patterndescr'] = t('Pattern for blog page paths');
$settings['patterndefault'] = 'blogs/[user:name]';
$settings['batch_update_callback'] = 'blog_pathauto_bulk_update_batch_process';
$settings['batch_file'] = drupal_get_path('module', 'pathauto') . '/pathauto.pathauto.inc';
return (object) $settings;
}
}