shortcut_set_add_form_validate

function shortcut_set_add_form_validate

shortcut_set_add_form_validate($form, &$form_state)

Validation handler for shortcut_set_add_form().

File

modules/shortcut/shortcut.admin.inc, line 228
Administrative page callbacks for the shortcut module.

Code

function shortcut_set_add_form_validate($form, &$form_state) {
  // Check to prevent a duplicate title.
  if (shortcut_set_title_exists($form_state['values']['new'])) {
    form_set_error('new', t('The shortcut set %name already exists. Choose another name.', array('%name' => $form_state['values']['new'])));
  }
}

© 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_set_add_form_validate/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部