This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
suitedesk/modules/storm/stormidea/stormidea.views.inc

42 lines
1 KiB
PHP

<?php
/**
* @file
* Functions to expose storm quick note module data to views
*/
function stormidea_views_data() {
$data['stormidea']['table']['group'] = t('SuiteDesk Quick Note');
$data['stormidea']['table']['join'] = array(
'node' => array(
'left_field' => 'vid',
'field' => 'vid',
),
);
$data['stormidea']['operation'] = array(
'field' => array(
'title' => t('Edit/Delete link'),
'help' => t('Provide a simple link to edit and delete the node.'),
'handler' => 'storm_handler_field_operation',
'type' => 'stormidea',
),
);
return $data;
}
function stormidea_views_handlers() {
return array(
'info' => array(
'path' => drupal_get_path('module', 'storm'),
),
'handlers' => array(
'storm_handler_filter_attributes_domain' => array(
'parent' => 'views_handler_filter_in_operator',
),
'storm_handler_field_operation' => array(
'parent' => 'views_handler_field_node_link',
'path' => drupal_get_path('module', 'storm'),
),
),
);
}