function backgroundfield_field_info in BackgroundField 7
Same name and namespace in other branches
- 6 backgroundfield.module \backgroundfield_field_info()
Implementation of hook_field_info()
File
- ./
backgroundfield.module, line 6
Code
function backgroundfield_field_info() {
return array(
'backgroundfield' => array(
'label' => t('BackgroundField'),
'description' => t('Defines a background image field with associated css settings'),
'settings' => array(
'uri_scheme' => variable_get('file_default_scheme', 'public'),
'default_image' => 0,
),
'instance_settings' => array(
'file_extensions' => 'png gif jpg jpeg',
'file_directory' => '',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'image_style' => '',
'css_selector' => '',
'css_repeat' => '',
'css_h_position' => '',
'css_v_position' => '',
'css_attachment' => '',
'css_important' => '',
'css_size' => '',
),
'default_widget' => 'backgroundfield_widget',
'default_formatter' => 'backgroundfield_formatter',
),
);
}