function custom_formatters_crud_load_all in Custom Formatters 7.2
Load all Custom formatter objects.
Parameters
bool $flush_cache: If TRUE, reload all Custom formatter objects.
Return value
array A keyed array of Custom formatter objects.
4 calls to custom_formatters_crud_load_all()
- custom_formatters_crud_load in ./
custom_formatters.module - Load specified Custom formatter object.
- custom_formatters_ds_fields_info_alter in includes/
ds.inc - Implements hook_ds_fields_info_alter().
- custom_formatters_field_formatter_info in includes/
field.inc - Implements hook_field_formatter_info().
- custom_formatters_insert_styles in includes/
insert.inc - Implements hook_insert_styles().
File
- ./
custom_formatters.module, line 102 - Core functions for the Custom Formatters module.
Code
function custom_formatters_crud_load_all($flush_cache = FALSE) {
$formatters =& drupal_static(__FUNCTION__, array());
if (!$formatters || $flush_cache) {
ctools_include('export');
foreach (ctools_export_crud_load_all('formatters', $flush_cache) as $formatter) {
if (empty($formatter->disabled)) {
$formatters[$formatter->name] = $formatter;
}
}
}
return $formatters;
}