function pollim_views_data_alter in Poll Improved 7
Implements hook_views_data()
File
- views/
pollim.views.inc, line 12 - Providing extra functionality for the pollim UI via views.
Code
function pollim_views_data_alter(&$data) {
$data['pollim']['link_pollim'] = array(
'field' => array(
'title' => t('Link'),
'help' => t('Provide a link to the pollim.'),
'handler' => 'pollim_handler_link_field',
),
);
$data['pollim']['edit_pollim'] = array(
'field' => array(
'title' => t('Edit Link'),
'help' => t('Provide a link to the edit form for the pollim.'),
'handler' => 'pollim_handler_edit_link_field',
),
);
$data['pollim']['delete_pollim'] = array(
'field' => array(
'title' => t('Delete Link'),
'help' => t('Provide a link to delete the pollim.'),
'handler' => 'pollim_handler_delete_link_field',
),
);
// This content of this field are decided based on the menu structure that
// follows pollims/pollim/%pollim_id/op
$data['pollim']['operations'] = array(
'field' => array(
'title' => t('Operations links'),
'help' => t('Display all operations available for this pollim.'),
'handler' => 'pollim_handler_pollim_operations_field',
),
);
}