function anonymous_publishing_views_tables in Anonymous Publishing 5
Views integration.
File
- ./
anonymous_publishing.module, line 348 - Installation file for the anonymous_publishing module.
Code
function anonymous_publishing_views_tables() {
$tables['anonymous_publishing'] = array(
'name' => 'anonymous_publishing',
'provider' => 'internal',
'join' => array(
'type' => 'left',
'left' => array(
'table' => 'node',
'field' => 'nid',
),
'right' => array(
'field' => 'nid',
),
),
'filters' => array(
'anonymous' => array(
'name' => t('Anonymous Publishing: Node published anonymously'),
'field' => 'anonymous',
'help' => t('This allows you to filter by whether or not the node has been published anonymously.'),
'operator' => array(
'=' => t('Equals'),
),
'list' => 'views_handler_operator_yesno',
'list-type' => 'select',
),
'activated' => array(
'name' => t('Anonymous Publishing: Node activated'),
'field' => 'activated',
'help' => t('This allows you to filter by whether or not a node that has been published anonymously was activated.'),
'operator' => array(
'=' => t('Equals'),
),
'list' => 'views_handler_operator_yesno',
'list-type' => 'select',
'handler' => 'anonymous_publishing_views_handler_filter_activated',
),
),
);
return $tables;
}