You are here

function _user_pathauto in Pathauto 6.2

Implements hook_pathauto().

1 call to _user_pathauto()
user_pathauto in ./pathauto.module
Implements hook_pathauto() on behalf of user.module.

File

./pathauto.pathauto.inc, line 233
Pathauto integration for core modules.

Code

function _user_pathauto($op) {
  switch ($op) {
    case '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-raw]';
      $settings['batch_update_callback'] = 'user_pathauto_bulk_update_batch_process';
      $settings['batch_file'] = drupal_get_path('module', 'pathauto') . '/pathauto.pathauto.inc';
      return (object) $settings;
    default:
      break;
  }
}