function name_settings in Name Field 7
Same name and namespace in other branches
- 6 name.module \name_settings()
Handles the initialization of the Name module settings that are stored in the {variables} table.
7 calls to name_settings()
- namefield_features_export_render in includes/
name.features.inc - Implements hook_features_export_render().
- namefield_features_rebuild in includes/
name.features.inc - Implements hook_features_export_rebuild().
- name_admin_settings_form in ./
name.admin.inc - Form builder function for module settings.
- name_get_format_by_machine_name in ./
name.module - Loads a format based on the machine name.
- name_list_custom_formats in ./
name.admin.inc - Lists the known custom formats.
2 string references to 'name_settings'
- namefield_features_rebuild in includes/
name.features.inc - Implements hook_features_export_rebuild().
- name_uninstall in ./
name.install - Implements hook_uninstall().
File
- ./
name.module, line 42 - Defines an API for displaying and inputing names.
Code
function name_settings($key = NULL) {
$settings = variable_get('name_settings', array());
$settings += array(
'default_format' => '((((t+ig)+im)+if)+is)+jc',
'sep1' => ' ',
'sep2' => ', ',
'sep3' => '',
);
if ($key) {
return $settings[$key];
}
return $settings;
}