You are here

function flag_handler_relationship_user_content::options_form in Flag 7.3

Same name and namespace in other branches
  1. 6.2 includes/flag_handler_relationships.inc \flag_handler_relationship_user_content::options_form()
  2. 6 includes/flag_handler_relationships.inc \flag_handler_relationship_user_content::options_form()
  3. 7.2 includes/flag_handler_relationships.inc \flag_handler_relationship_user_content::options_form()

Provide the label widget that all fields should have.

Overrides views_handler_relationship::options_form

File

includes/views/flag_handler_relationships.inc, line 256
Contains various relationship handlers.

Class

flag_handler_relationship_user_content
Views relationship handler associating flags and users.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['label']['#description'] .= ' ' . t('Including name of the selected flag helps identify this relationship.');
  $form['flag'] = flag_views_flag_config_form('radios', NULL, $this->options['flag']);
  $form['flag']['#title'] = t('Flagged');
  $form['required']['#title'] = t('Include only users who have flagged content.');
  $form['required']['#description'] = t('If checked, only users that have flagged any content with this flag will be included.');
}