You are here

function image_views_data_alter in Image 7

Same name and namespace in other branches
  1. 6 views/image.views.inc \image_views_data_alter()

Implementation of hook_views_data_alter().

File

views/image.views.inc, line 108
Views integration for Image module.

Code

function image_views_data_alter(&$data) {

  // {node} table, prefixed with 'image' to avoid potential clashes.
  // The image for an image node. This could technically be #global, but adding
  // on {node} allows this field to be used through relationships if needed
  // (e.g. through a CCK nodereference field).
  $data['node']['image_image'] = array(
    'group' => t('Image'),
    'field' => array(
      'title' => t('Image'),
      'help' => t('The rendered image of an Image node, shown at a chosen size. This field can be added without a relationship.'),
      'handler' => 'image_handler_field_image_node_image',
    ),
    'argument' => array(
      'title' => t('Image size'),
      'help' => t('Allows the size of the Image node image field to be set with the argument.'),
      'handler' => 'image_handler_argument_image_node_image_size',
    ),
  );
}