You are here

function og_subgroups_workflow_ng_condition_has_family_form in Subgroups for Organic groups 5

Same name and namespace in other branches
  1. 5.4 og_subgroups.workflow_ng.inc \og_subgroups_workflow_ng_condition_has_family_form()

roup has family form.

See also

og_subgroups_workflow_ng_condition_has_family_submit.

File

./og_subgroups.workflow_ng.inc, line 81
og_subgroups.workflow_ng.inc

Code

function og_subgroups_workflow_ng_condition_has_family_form($settings = array(), $argument_info) {
  $form = array();
  $form['direction'] = array(
    '#type' => 'radios',
    '#title' => t('Family relation'),
    '#options' => array(
      'up' => 'parent',
      'down' => 'children',
      'side' => 'syblings',
    ),
    '#description' => t('Set which family relatives should be checked for presence.'),
    '#default_value' => $settings['direction'],
    '#required' => TRUE,
  );
  return $form;
}