function content_access_get_setting_defaults in Content Access 7
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()
- 6 content_access.module \content_access_get_setting_defaults()
Defines default values for settings.
2 calls to content_access_get_setting_defaults()
- content_access_get_settings in ./
content_access.module - Return content_access' settings.
- content_access_set_settings in ./
content_access.module - Save content_access settings of a content type.
File
- ./
content_access.module, line 264 - Content access module file.
Code
function content_access_get_setting_defaults($type) {
$defaults = array();
$defaults['view'] = $defaults['view_own'] = array(
DRUPAL_ANONYMOUS_RID,
DRUPAL_AUTHENTICATED_RID,
);
foreach (array(
'update',
'delete',
) as $op) {
$defaults[$op] = content_access_get_permission_access(content_access_get_permission_by_op($op, $type));
$defaults[$op . '_own'] = content_access_get_permission_access(content_access_get_permission_by_op($op . '_own', $type));
}
$defaults['priority'] = 0;
$defaults['per_node'] = FALSE;
return $defaults;
}