function panopoly_widgets_field_info in Panopoly Widgets 7
Implements hook_field_info().
File
- ./
panopoly_widgets.spotlight.inc, line 11 - A specification for the custom spotlight entity that is part of Panopoly Widgets
Code
function panopoly_widgets_field_info() {
return array(
'panopoly_spotlight' => array(
'label' => t('Spotlight'),
'description' => t('A wonderfully widgetsal spotlight field'),
'default_widget' => 'panopoly_spotlight_form',
'default_formatter' => 'panopoly_spotlight_default',
'settings' => array(
'uri_scheme' => variable_get('file_default_scheme', 'public'),
'default_image' => 1,
),
'instance_settings' => array(
'file_extensions' => 'jpg jpeg gif png',
'file_directory' => 'general',
'max_filesize' => '',
'alt_field' => 0,
'title_field' => 0,
'max_resolution' => '',
'min_resolution' => '',
),
),
);
}