function bean_views_data_alter in Bean (for Drupal 7) 7
Implements hook_views_data_alter().
File
- views/
bean.views.inc, line 11 - Alter view data for bean block entity.
Code
function bean_views_data_alter(&$data) {
$data['bean']['table']['group'] = 'Block';
$data['bean']['table']['entity type'] = 'bean';
$data['bean']['type'] = array(
'title' => t('Type'),
'help' => t('The block type'),
'field' => array(
'handler' => 'views_handler_field_bean_type',
),
'filter' => array(
'handler' => 'views_handler_filter_bean_type',
),
);
$data['bean']['edit_link'] = array(
'title' => t('Edit link'),
'help' => t('Edit link for bean block'),
'field' => array(
'handler' => 'views_handler_field_bean_edit_link',
),
);
$data['bean']['delete_link'] = array(
'title' => t('Delete link'),
'help' => t('Delete link for bean block'),
'field' => array(
'handler' => 'views_handler_field_bean_delete_link',
),
);
$data['bean']['operations'] = array(
'title' => t('Contextual / Operation links'),
'help' => t('Display all the available contextual / operation links for the block.'),
'field' => array(
'handler' => 'views_handler_field_bean_operations',
),
);
}