You are here

function flag_handler_relationship_content::options_validate in Flag 6

Same name and namespace in other branches
  1. 6.2 includes/flag_handler_relationships.inc \flag_handler_relationship_content::options_validate()
  2. 7.3 includes/views/flag_handler_relationships.inc \flag_handler_relationship_content::options_validate()
  3. 7.2 includes/flag_handler_relationships.inc \flag_handler_relationship_content::options_validate()

File

includes/flag_handler_relationships.inc, line 52
Contains various relationship handlers.

Class

flag_handler_relationship_content
Specialized relationship handler associating flags and content.

Code

function options_validate($form, &$form_state) {
  if (!empty($form_state['no flags exist'])) {
    form_error($form, t('You must first create a flag'));
  }
}