function custom_formatters_formatter in Custom Formatters 6
Load a formatter by name.
Parameters
$name: The name of the formatter.
Return value
formatter array. empty array if name is an invalid formatter.
15 calls to custom_formatters_formatter()
- custom_formatters_bulk_convert_confirm in ./
custom_formatters.admin.inc - custom_formatters_bulk_delete_confirm in ./
custom_formatters.admin.inc - custom_formatters_features_export in includes/
features.inc - Implements hook_features_export().
- custom_formatters_features_export_render in includes/
features.inc - Implements hook_features_export_render().
- custom_formatters_features_pipe_content_alter in includes/
features.inc - Implements hook_features_pipe_component_alter().
File
- ./
custom_formatters.module, line 353 - Contains core functions for the Custom Formatters module.
Code
function custom_formatters_formatter($name, $reset = FALSE) {
$formatters = custom_formatters_formatters($reset);
// Make sure $name isn't prefixed with 'custom_formatters_'.
$name = strpos($name, 'custom_formatters_') === 0 ? drupal_substr($name, 18) : $name;
return isset($formatters[$name]) ? $formatters[$name] : array();
}