function block_access_module_form_submit in Block Access 6.2
Same name and namespace in other branches
- 6 block_access.admin.inc \block_access_module_form_submit()
- 7 block_access.admin.inc \block_access_module_form_submit()
File
- ./
block_access.admin.inc, line 43
Code
function block_access_module_form_submit($form, &$form_state) {
$module = $form_state['values']['module'];
block_access_config_set_roles('view', $form_state['values']['view_roles'], $module);
block_access_config_set_roles('move', $form_state['values']['move_roles'], $module);
block_access_config_set_roles('enable', $form_state['values']['enable_roles'], $module);
block_access_config_set_roles('disable', $form_state['values']['disable_roles'], $module);
block_access_config_set_roles('config', $form_state['values']['config_roles'], $module);
block_access_config_set_roles('delete', $form_state['values']['delete_roles'], $module);
block_access_config_set_roles('config_lang', $form_state['values']['config_lang_roles'], $module);
block_access_config_set_roles('config_spec', $form_state['values']['config_spec_roles'], $module);
block_access_config_set_roles('config_user', $form_state['values']['config_user_roles'], $module);
block_access_config_set_roles('config_role', $form_state['values']['config_role_roles'], $module);
block_access_config_set_roles('config_page', $form_state['values']['config_page_roles'], $module);
}