function content_access_get_setting_defaults in Content Access 6
Same name and namespace in other branches
- 8 content_access.module \content_access_get_setting_defaults()
- 5 content_access.module \content_access_get_setting_defaults()
- 7 content_access.module \content_access_get_setting_defaults()
Defines default values for settings.
1 call to content_access_get_setting_defaults()
- content_access_get_settings in ./
content_access.module - Returns the content_access' settings.
File
- ./
content_access.module, line 217 - Content access module file.
Code
function content_access_get_setting_defaults($setting, $type) {
switch ($setting) {
default:
return array();
case 'view':
case 'view_own':
return array(
DRUPAL_ANONYMOUS_RID,
DRUPAL_AUTHENTICATED_RID,
);
case 'update':
case 'update_own':
case 'delete':
case 'delete_own':
return content_access_get_permission_access(content_access_get_permission_by_op($setting, $type));
case 'priority':
return 0;
}
}