You are here

function flag_handler_relationship_content::options_validate in Flag 7.2

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

Validate the options form.

Overrides views_handler::options_validate

File

includes/flag_handler_relationships.inc, line 123
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'));
  }
}