1 path.module path_form_user_admin_settings_alter(&$form, $form_state)

Implements hook_form_FORM_ID_alter() for user_admin_settings().

File

core/modules/path/path.module, line 355
Enables users to customize URLs and provide automatic URL alias patterns.

Code

function path_form_user_admin_settings_alter(&$form, $form_state) {
  $settings = array(
    'default' => config_get('path.settings', 'user_pattern'),
    'description' => t('New pages will have URLs that match a pattern based on wildcards called <em>tokens</em>. For example the URL <code>members/jane-doe</code> could be created using the pattern <code>members/[user:name]</code> if the user name is "Jane Doe".'),
    'token_types' => array('user'),
  );
  $form += path_pattern_settings_form($settings);
  $form['path']['#weight'] = -1;
  $form['path']['#collapsible'] = FALSE;
  $form['#submit'][] = 'path_user_admin_settings_submit';
}