You are here

function flag_add_form_validate in Flag 6

Same name and namespace in other branches
  1. 5 includes/flag.admin.inc \flag_add_form_validate()
  2. 6.2 includes/flag.admin.inc \flag_add_form_validate()
  3. 7.3 includes/flag.admin.inc \flag_add_form_validate()
  4. 7.2 includes/flag.admin.inc \flag_add_form_validate()

File

includes/flag.admin.inc, line 152
Contains administrative pages for creating, editing, and deleting flags.

Code

function flag_add_form_validate($form, &$form_state) {
  $flag = flag_flag::factory_by_content_type($form_state['values']['type']);
  $flag->name = $form_state['values']['name'];
  $flag
    ->validate_name();
}