function flag_add_form_validate in Flag 5
Same name and namespace in other branches
- 6.2 includes/flag.admin.inc \flag_add_form_validate()
- 6 includes/flag.admin.inc \flag_add_form_validate()
- 7.3 includes/flag.admin.inc \flag_add_form_validate()
- 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();
}