shortcut_link_edit_validate
function shortcut_link_edit_validate
shortcut_link_edit_validate($form, &$form_state)
Validation handler for the shortcut link add and edit forms.
File
- modules/shortcut/shortcut.admin.inc, line 512
- Administrative page callbacks for the shortcut module.
Code
function shortcut_link_edit_validate($form, &$form_state) { if (!shortcut_valid_link($form_state['values']['shortcut_link']['link_path'])) { form_set_error('shortcut_link][link_path', t('The link must correspond to a valid path on the site.')); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!shortcut!shortcut.admin.inc/function/shortcut_link_edit_validate/7.x