You are here

function block_access_config_submit in Block Access 6

Same name and namespace in other branches
  1. 6.2 block_access.module \block_access_config_submit()
  2. 7 block_access.module \block_access_config_submit()
1 string reference to 'block_access_config_submit'
block_access_form_alter in ./block_access.module

File

./block_access.module, line 460

Code

function block_access_config_submit($form, &$form_state) {
  $module = $form_state['values']['module'];
  $delta = $form_state['values']['delta'];
  if (isset($form_state['values']['view_roles'])) {
    block_access_config_set_roles('view', $form_state['values']['view_roles'], $module, $delta);
    block_access_config_set_roles('move', $form_state['values']['move_roles'], $module, $delta);
    block_access_config_set_roles('enable', $form_state['values']['enable_roles'], $module, $delta);
    block_access_config_set_roles('disable', $form_state['values']['disable_roles'], $module, $delta);
    block_access_config_set_roles('config', $form_state['values']['config_roles'], $module, $delta);
    block_access_config_set_roles('delete', $form_state['values']['delete_roles'], $module, $delta);
    block_access_config_set_roles('config_lang', $form_state['values']['config_lang_roles'], $module, $delta);
    block_access_config_set_roles('config_spec', $form_state['values']['config_spec_roles'], $module, $delta);
    block_access_config_set_roles('config_user', $form_state['values']['config_user_roles'], $module, $delta);
    block_access_config_set_roles('config_role', $form_state['values']['config_role_roles'], $module, $delta);
    block_access_config_set_roles('config_page', $form_state['values']['config_page_roles'], $module, $delta);
  }
}