function bg_image_formatter_field_formatter_info in Background Images Formatter 7
Same name and namespace in other branches
- 7.2 bg_image_formatter.module \bg_image_formatter_field_formatter_info()
Implements hook_field_formatter_info().
File
- ./
bg_image_formatter.module, line 6
Code
function bg_image_formatter_field_formatter_info() {
$formatters = array(
'bg_image_formatter' => array(
'label' => t('Background image'),
'field types' => array(
'image',
'imagefield_crop',
),
'settings' => array(
'image_style' => '',
'multiple' => FALSE,
'css_settings' => array(
'bg_image_selector' => 'body',
'bg_image_color' => '#FFFFFF',
'bg_image_x' => 'left',
'bg_image_y' => 'top',
'bg_image_attachment' => 'scroll',
'bg_image_repeat' => 'no-repeat',
'bg_image_background_size' => '',
'bg_image_background_size_ie8' => 0,
'bg_image_media_query' => 'all',
'bg_image_important' => 1,
),
),
),
);
return $formatters;
}