You are here

function og_rules_action_subscribe_user_form in Organic groups 6

Same name and namespace in other branches
  1. 6.2 includes/og.rules.inc \og_rules_action_subscribe_user_form()

Action: Subscribe user to group form.

File

includes/og.rules.inc, line 135
Rules integration for the og module.

Code

function og_rules_action_subscribe_user_form($settings, &$form) {
  $form['settings']['is_active'] = array(
    '#type' => 'checkbox',
    '#title' => t('Subscription is approved'),
    '#description' => t('When enabled the user will automatically be approved. When disabled user will be a pending member.'),
    '#default_value' => $settings['is_active'],
  );
}