You are here

function pathauto_form_taxonomy_form_term_alter in Pathauto 7

Implements hook_form_FORM_ID_alter().

Add the Pathauto settings to the taxonomy term form.

File

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

Code

function pathauto_form_taxonomy_form_term_alter(&$form, $form_state) {
  $term = $form_state['term'];
  $langcode = pathauto_entity_language('taxonomy_term', $term);
  pathauto_field_attach_form('taxonomy_term', $term, $form, $form_state, $langcode);
}