function mpac_form_path_admin_form_alter in Multi-path autocomplete 7
Same name and namespace in other branches
- 8 mpac.module \mpac_form_path_admin_form_alter()
Implement hook_form_FORM_ID_alter().
Change path field for URL aliases to autocomplete field.
File
- ./
mpac.module, line 113 - Find node paths on menu item creation via autocomplete.
Code
function mpac_form_path_admin_form_alter(&$form, &$form_state) {
if ($form['source']['#type'] == 'textfield') {
$form['source']['#autocomplete_path'] = 'mpac/autocomplete/alias';
$form['source']['#description'] .= '<br />' . t("You may enter the title of the node you'd like to link to to get a list of all possible matches.");
}
}