function pathauto_form_node_form_alter in Pathauto 7
Implements hook_form_BASE_FORM_ID_alter().
Add the Pathauto settings to the node form.
File
- ./
pathauto.module, line 714 - Main file for the Pathauto module, which automatically generates aliases for content.
Code
function pathauto_form_node_form_alter(&$form, &$form_state) {
$node = $form_state['node'];
$langcode = pathauto_entity_language('node', $node);
pathauto_field_attach_form('node', $node, $form, $form_state, $langcode);
}