You are here

function og_ui_user_admin_settings in Organic groups 7

Menu callback; Admin settings form.

1 string reference to 'og_ui_user_admin_settings'
og_ui_menu in og_ui/og_ui.module
Implements hook_menu().

File

og_ui/og_ui.admin.inc, line 12
Admin settings for Organic groups module.

Code

function og_ui_user_admin_settings($form_state) {
  $form = array();
  $form['og_group_manager_full_access'] = array(
    '#type' => 'checkbox',
    '#title' => t('Group manager full permissions'),
    '#description' => t('When enabled the group manager will have all the permissions in the group.'),
    '#default_value' => variable_get('og_group_manager_full_access', TRUE),
  );
  $form['og_node_access_strict'] = array(
    '#type' => 'checkbox',
    '#title' => t('Strict node access permissions'),
    '#description' => t('When enabled Organic groups will take full control of node access permission, and will deny access based on Organic groups access. Example: A content editor with the <em>Edit any page content</em> permission who is not a member of a group would be denied access to modifying page content in that group.'),
    '#default_value' => variable_get('og_node_access_strict', TRUE),
  );
  return system_settings_form($form);
}