You are here

function linkimagefield_field_info in Link Image Field 7

Same name and namespace in other branches
  1. 5 linkimagefield.module \linkimagefield_field_info()

Implements hook_field_info().

File

./linkimagefield.module, line 11
Defines a link image field type.

Code

function linkimagefield_field_info() {
  return array(
    'linkimagefield' => array(
      'label' => t('Link Image'),
      'description' => t('An edit widget for image files that display as a link, including a preview of the image.'),
      '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' => '',
        'alt_field' => 0,
        'longdesc_field' => 0,
        'title_field' => 0,
        'rel_field' => 0,
        'class_field' => 0,
        'max_resolution' => '',
        'min_resolution' => '',
        'url' => '',
        'custom_target' => 0,
        'target' => '_self',
      ),
      'default_widget' => 'linkimagefield_widget',
      'default_formatter' => 'linkimagefield',
    ),
  );
}