You are here

function og_workflow_ng_action_subscribe_user_form in Organic groups 5.8

Same name and namespace in other branches
  1. 5 og_workflow_ng.inc \og_workflow_ng_action_subscribe_user_form()
  2. 5.3 og_workflow_ng.inc \og_workflow_ng_action_subscribe_user_form()

Subscribe user to group form.

See also

og_workflow_ng_action_subscribe_user_submit.

File

./og_workflow_ng.inc, line 117
workflow_ng integration for og module.

Code

function og_workflow_ng_action_subscribe_user_form($settings = array(), $argument_info) {
  $form = array();
  $form['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'],
  );
  return $form;
}