function content_access_set_settings in Content Access 5
Same name and namespace in other branches
- 8 content_access.module \content_access_set_settings()
- 6 content_access.module \content_access_set_settings()
- 7 content_access.module \content_access_set_settings()
2 calls to content_access_set_settings()
- content_access_admin_settings_submit in ./
content_access.module - content_access_node_type in ./
content_access.module - Implementation of hook_node_type(): Update settings on node type name change.
File
- ./
content_access.module, line 399
Code
function content_access_set_settings($settings) {
// Cleanup the settings before saving.
foreach (content_access_available_settings() as $setting) {
if (isset($settings[$setting])) {
foreach ($settings[$setting] as $type => $value) {
if (!isset($value)) {
unset($settings[$setting][$type]);
}
}
}
}
variable_set('content_access_settings', $settings);
}