You are here

function flag_rules_action_flag_form in Flag 6

Same name and namespace in other branches
  1. 6.2 includes/flag.rules_forms.inc \flag_rules_action_flag_form()

File

includes/flag.rules_forms.inc, line 12
flag.rules_form.inc Rules integration for the Flag module.

Code

function flag_rules_action_flag_form($settings, &$form, &$form_state) {
  $settings += array(
    'permission_check' => FALSE,
  );
  $form['settings']['permission_check'] = array(
    '#title' => t('Check access permissions against the user on whose behalf to flag'),
    '#type' => 'checkbox',
    '#default_value' => $settings['permission_check'],
  );
}