function name_get_custom_format_options in Name Field 7
Same name and namespace in other branches
- 8 name.module \name_get_custom_format_options()
- 6 name.module \name_get_custom_format_options()
Helper function to generate a list of all defined custom formatting options.
6 calls to name_get_custom_format_options()
- namefield_features_export_options in includes/
name.features.inc - Implements hook_features_export_options().
- name_field_diff_options_form in ./
name.diff.inc - Provide a form for setting the field comparison options.
- name_field_formatter_settings_form in ./
name.module - Implements hook_field_formatter_settings_form().
- name_token_info in ./
name.tokens.inc - Implements hook_token_info().
- _name_field_instance_settings_form in includes/
name.content.inc - Implements hook_field_instance_settings_form().
File
- ./
name.module, line 316 - Defines an API for displaying and inputing names.
Code
function name_get_custom_format_options() {
$options = array();
foreach (name_get_custom_formats() as $wcfid => $row) {
$options[$row->machine_name] = $row->name;
}
natcasesort($options);
return $options;
}