You are here

function flag_add_form_validate in Flag 5

Same name and namespace in other branches
  1. 6.2 includes/flag.admin.inc \flag_add_form_validate()
  2. 6 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 154
Contains administrative pages for creating, editing, and deleting flags.

Code

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