function block_access_config_submit in Block Access 7
Same name and namespace in other branches
- 6.2 block_access.module \block_access_config_submit()
- 6 block_access.module \block_access_config_submit()
1 string reference to 'block_access_config_submit'
File
- ./
block_access.module, line 587
Code
function block_access_config_submit($form, &$form_state) {
$values = $form_state['values'];
$module = $values['module'];
$delta = $values['delta'];
// If there's one, they're all there.
if (isset($form_state['values']['view_roles'])) {
block_access_config_set_roles('view', $values['view_roles'], $module, $delta);
block_access_config_set_roles('move', $values['move_roles'], $module, $delta);
block_access_config_set_roles('enable', $values['enable_roles'], $module, $delta);
block_access_config_set_roles('disable', $values['disable_roles'], $module, $delta);
block_access_config_set_roles('delete', $values['delete_roles'], $module, $delta);
block_access_config_set_roles('config', $values['config_roles'], $module, $delta);
block_access_config_set_roles('config_lang', $values['config_lang_roles'], $module, $delta);
block_access_config_set_roles('config_title', $values['config_title_roles'], $module, $delta);
block_access_config_set_roles('config_desc', $values['config_desc_roles'], $module, $delta);
block_access_config_set_roles('config_body', $values['config_body_roles'], $module, $delta);
block_access_config_set_roles('config_region', $values['config_region_roles'], $module, $delta);
block_access_config_set_roles('config_type_visibility', $values['config_type_visibility_roles'], $module, $delta);
block_access_config_set_roles('config_user_visibility', $values['config_user_visibility_roles'], $module, $delta);
block_access_config_set_roles('config_role_visibility', $values['config_role_visibility_roles'], $module, $delta);
block_access_config_set_roles('config_page_visibility', $values['config_page_visibility_roles'], $module, $delta);
}
}