function content_profile_get_settings in Content Profile 6
Returns the content_profiles' settings.
Parameters
$type: The content type to return settings for.
$return: 'all' or one of the content_profile_available_settings(), e.g. user_edit, register or weight.
11 calls to content_profile_get_settings()
- content_profile_admin_settings in ./
content_profile.module - Menu callback; content profile settings.
- content_profile_admin_settings_submit in ./
content_profile.module - content_profile_default_path_handler in ./
content_profile.theme.inc - Default path handler for content profile, which uses the default system paths
- content_profile_get_types in ./
content_profile.module - Builds a list of available content types that are marked as content_profiles, and returns an array of content profile content types in the specified format.
- content_profile_menu in ./
content_profile.module - Implementation of hook_menu().
File
- ./
content_profile.module, line 423
Code
function content_profile_get_settings($type, $return = 'all') {
$settings = variable_get('content_profile_' . $type, array());
$settings += content_profile_settings_info();
if ($return == 'all') {
return $settings;
}
return $settings[$return];
}