function og_set_state_action_form in Organic groups 7.2
File
- includes/
actions/ set_state.action.inc, line 16 - Action to set the state of a user in a group.
Code
function og_set_state_action_form($context) {
$form['state'] = array(
'#type' => 'select',
'#title' => t('State'),
'#description' => t('Choose the state to set for the selected users in the group.'),
'#options' => og_group_content_states(),
'#default_value' => OG_STATE_ACTIVE,
'#required' => TRUE,
);
return $form;
}