fasttoggle_node.views.inc in Fasttoggle 7
Views data definitions for Fasttoggle.
This file defines how Views should get Fasttoggle data.
File
module/fasttoggle_node/views/fasttoggle_node.views.incView source
<?php
/**
* @file
* Views data definitions for Fasttoggle.
*
* This file defines how Views should get Fasttoggle data.
*/
/**
* Implements hook_views_data_alter().
*/
function fasttoggle_node_views_data_alter(&$data) {
$data['node']['fasttoggle_publish_node'] = array(
'field' => array(
'title' => t('Publish Link (Fasttoggle)'),
'help' => t('Provide a simple link to publish the node.'),
'handler' => 'fasttoggle_node_views_handler_field_node_link',
'fasttoggle_node' => array(
'key' => 'status',
),
),
);
$data['node']['fasttoggle_promote_node'] = array(
'field' => array(
'title' => t('Promote Link (Fasttoggle)'),
'help' => t('Provide a simple link to promote the node.'),
'handler' => 'fasttoggle_node_views_handler_field_node_link',
'fasttoggle_node' => array(
'key' => 'promote',
'additional_fields' => array(
'promote' => 'promote',
),
),
),
);
$data['node']['fasttoggle_sticky_node'] = array(
'field' => array(
'title' => t('Sticky Link (Fasttoggle)'),
'help' => t('Provide a simple link to make the node sticky.'),
'handler' => 'fasttoggle_node_views_handler_field_node_link',
'fasttoggle_node' => array(
'key' => 'sticky',
'additional_fields' => array(
'sticky' => 'sticky',
),
),
),
);
}
Functions
Name![]() |
Description |
---|---|
fasttoggle_node_views_data_alter | Implements hook_views_data_alter(). |