You are here

function hook_custom_formatters_defaults in Custom Formatters 6

Same name and namespace in other branches
  1. 7.2 custom_formatters.api.php \hook_custom_formatters_defaults()

Provide your own default Custom Formatters.

Return value

An array containing Custom Formatters settings.

1 function implements hook_custom_formatters_defaults()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

custom_formatters_custom_formatters_defaults in includes/custom_formatters.inc
Implements hook_custom_formatters_defaults().
3 invocations of hook_custom_formatters_defaults()
custom_formatters_features_pipe_content_alter in includes/features.inc
Implements hook_features_pipe_component_alter().
custom_formatters_features_pipe_views_alter in includes/features.inc
Implements hook_features_pipe_component_alter().
custom_formatters_formatters in ./custom_formatters.module
Get an array of all custom formatters and their settings.

File

./custom_formatters.api.php, line 44
Hooks provided by the Custom Formatters module.

Code

function hook_custom_formatters_defaults() {
  return array(
    'image' => array(
      'name' => 'image',
      'label' => 'Image',
      'field_types' => 'a:1:{i:0;s:9:"filefield";}',
      'multiple' => '0',
      'description' => '',
      'mode' => 'basic',
      'code' => '<img src="[site-url]/[filefield-filepath]" alt="" />',
      'status' => 1,
    ),
  );
}