You are here

function user_pathauto in Pathauto 7

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

Implements hook_pathauto() on behalf of user module.

File

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

Code

function user_pathauto($op) {
  if ($op == 'settings') {
    $settings = array();
    $settings['module'] = 'user';
    $settings['token_type'] = 'user';
    $settings['groupheader'] = t('User paths');
    $settings['patterndescr'] = t('Pattern for user account page paths');
    $settings['patterndefault'] = 'users/[user:name]';
    $settings['batch_update_callback'] = 'user_pathauto_bulk_update_batch_process';
    $settings['batch_file'] = drupal_get_path('module', 'pathauto') . '/pathauto.pathauto.inc';
    return (object) $settings;
  }
}