You are here

function og_ui_user_admin_permissions_submit in Organic groups 7

Save permissions selected on the administer permissions page.

See also

og_user_admin_permissions()

1 string reference to 'og_ui_user_admin_permissions_submit'
og_ui_user_admin_permissions in og_ui/og_ui.admin.inc
Menu callback: administer permissions.

File

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

Code

function og_ui_user_admin_permissions_submit($form, &$form_state) {
  foreach ($form_state['values']['role_names'] as $rid => $name) {
    og_role_change_permissions($rid, $form_state['values'][$rid]);
  }
  drupal_set_message(t('The changes have been saved.'));
}