You are here

function og_member_ctools_access_settings in Organic groups 7

Same name and namespace in other branches
  1. 7.2 plugins/access/og_member.inc \og_member_ctools_access_settings()

Settings form for the 'by perm' access plugin

1 string reference to 'og_member_ctools_access_settings'
og_member.inc in plugins/access/og_member.inc
Plugin to provide access control based on user group membership.

File

plugins/access/og_member.inc, line 28
Plugin to provide access control based on user group membership.

Code

function og_member_ctools_access_settings($form, &$form_state, $conf) {
  $form['settings']['state'] = array(
    '#type' => 'select',
    '#options' => og_group_content_states(),
    '#title' => t('State in group'),
    '#multiple' => TRUE,
    '#default_value' => $conf['state'],
    '#description' => t('Only users with the specified state in group will be able to access this.'),
  );
  return $form;
}