You are here

function manualcrop_views_data_alter in Manual Crop 7

Implements hook_views_data_alter().

File

includes/views/manualcrop.views.inc, line 107
Views integration for Manual Crop.

Code

function manualcrop_views_data_alter(&$data) {
  if (isset($data['file_managed'])) {
    $data['file_managed']['file_to_manualcrop'] = array(
      'title' => t('Manual crop'),
      'help' => t('Manualcrop data for this file.'),
      'relationship' => array(
        'title' => t('Manual Crop'),
        'label' => t('manualcrop'),
        'base' => 'manualcrop',
        'base field' => 'fid',
        'relationship field' => 'fid',
      ),
    );
  }
}