function block_access_config_submit in Block Access 6.2
Same name and namespace in other branches
- 6 block_access.module \block_access_config_submit()
- 7 block_access.module \block_access_config_submit()
1 string reference to 'block_access_config_submit'
File
- ./
block_access.module, line 463
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);
}
}