function name_get_custom_format_options in Name Field 6
Same name and namespace in other branches
- 8 name.module \name_get_custom_format_options()
- 7 name.module \name_get_custom_format_options()
Helper function to generate a list of all defined custom formatting options.
4 calls to name_get_custom_format_options()
- name_additional_content_theme in ./
name.module - name_field_formatter_info in ./
name.module - Implementation of hook_field_formatter_info().
- _name_token_list in includes/
name.token.inc - Implementation of hook_token_list().
- _name_token_values in includes/
name.token.inc - Implementation of hook_token_values().
File
- ./
name.module, line 203 - 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;
}