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

Implements hook_form_BASE_FORM_ID_alter() for node_form().

See also

path_form_element_validate()

File

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

Code

function path_form_node_form_alter(&$form, $form_state) {
  $node = $form['#node'];
  $form['path'] = path_form_element($node);
  $form['path']['alias']['#description'] = t('The alternative URL for this content. Use a relative path without a trailing slash. For example, enter <code>about</code> for the about page.');
}