function pmorganization_views_data in Drupal PM (Project Management) 7
Same name and namespace in other branches
- 8 pmorganization/pmorganization.views.inc \pmorganization_views_data()
- 7.3 pmorganization/pmorganization.views.inc \pmorganization_views_data()
@file Functions to expose Project Management organization data to views
File
- pmorganization/
pmorganization.views.inc, line 6 - Functions to expose Project Management organization data to views
Code
function pmorganization_views_data() {
$data['pmorganization']['table']['group'] = 'Project Management Organization';
$data['pmorganization']['table']['join'] = array(
'node' => array(
'left_field' => 'vid',
'field' => 'vid',
),
);
$data['pmorganization']['country'] = array(
'title' => t('Country'),
'help' => t('Project Management Organization Country'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['pmorganization']['orglanguage'] = array(
'title' => t('Language'),
'help' => t('Project Management Organization Language'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['pmorganization']['provstate'] = array(
'title' => t('Province / State'),
'help' => t('Project Management Organization Province / State'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['pmorganization']['city'] = array(
'title' => t('City'),
'help' => t('Project Management Organization City'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['pmorganization']['zip'] = array(
'title' => t('Zip'),
'help' => t('Project Management Organization Zip'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['pmorganization']['address'] = array(
'title' => t('Address'),
'help' => t('Project Management Organization Address'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['pmorganization']['taxid'] = array(
'title' => t('Tax ID'),
'help' => t('Project Management Organization Tax ID'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['pmorganization']['email'] = array(
'title' => t('Email'),
'help' => t('Project Management Organization Email'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['pmorganization']['www'] = array(
'title' => t('WWW'),
'help' => t('Project Management Organization WWW'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['pmorganization']['phone'] = array(
'title' => t('Phone'),
'help' => t('Project Management Organization Phone'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['pmorganization']['currency'] = array(
'title' => t('Currency'),
'help' => t('Project Management Organization Currency'),
'field' => array(
'handler' => 'pm_handler_field_attributes_domain',
'domain' => 'Currency',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'pm_handler_filter_attributes_domain',
'domain' => 'Currency',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['pmorganization']['iscustomer'] = array(
'title' => t('Is customer'),
'help' => t('Project Management Organization Is Customer'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
),
);
$data['pmorganization']['isprovider'] = array(
'title' => t('Is provider'),
'help' => t('Project Management Organization Is Provider'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
),
);
$data['pmorganization']['isactive'] = array(
'title' => t('Is active'),
'help' => t('Project Management Organization Is Active'),
'field' => array(
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
),
);
$data['pmorganization']['operation'] = array(
'field' => array(
'title' => t('Edit/Delete link'),
'help' => t('Provide a simple link to edit and delete the node.'),
'handler' => 'pm_handler_field_operation',
'type' => 'pmorganization',
),
);
return $data;
}