You are here

function custom_formatters_crud_load in Custom Formatters 7.2

Load specified Custom formatter object.

Parameters

string $formatter: The name of the Custom formatter to load.

Return value

array|null The desired Custom formatter object, or NULL if no formatter found.

6 calls to custom_formatters_crud_load()
CustomFormattersTestCase::assertCustomFormatterExists in tests/custom_formatters.test
Pass if the Custom Formatter is found.
custom_formatters_features_pipe_field_instance_alter in includes/features.inc
Implements hook_features_pipe_component_alter().
custom_formatters_field_formatter_settings_form in includes/field.inc
Implements hook_field_formatter_settings_form().
custom_formatters_field_formatter_settings_summary in includes/field.inc
Implements hook_field_formatter_settings_summary().
custom_formatters_field_formatter_view in includes/field.inc
Implements hook_field_formatter_view().

... See full list

File

./custom_formatters.module, line 87
Core functions for the Custom Formatters module.

Code

function custom_formatters_crud_load($formatter) {
  $formatters = custom_formatters_crud_load_all();
  return isset($formatters[$formatter]) ? $formatters[$formatter] : NULL;
}