function og_menu_edit_menu_validate in Organic Groups Menu (OG Menu) 6.2
1 string reference to 'og_menu_edit_menu_validate'
- og_menu_edit_menu_form in ./
og_menu.module - Menu callback; Build the form that handles the adding/editing of a custom menu.
File
- ./
og_menu.module, line 435 - Integrates Menu with Organic Groups. Lots of menu forms duplication in OG context.
Code
function og_menu_edit_menu_validate($form, &$form_state) {
if (preg_match('/^menu-/', $form_state['values']['menu_name'])) {
form_set_error('menu_name', t('The menu name cannot begin with "menu-".'));
}
}