function draggableviews_book_views_data in DraggableViews 6.3
Same name and namespace in other branches
- 7.2 draggableviews_book/draggableviews_book.views.inc \draggableviews_book_views_data()
Implements of hook_views_data().
File
- modules/
draggableviews_book/ draggableviews_book.views.inc, line 10 - Provide special views data and handlers for book.module
Code
function draggableviews_book_views_data() {
// Book hierarchy and weight data are now in {menu_links}.
$data['draggableviews_book_book_parent']['table']['group'] = t('Book');
$data['draggableviews_book_book_parent']['table']['join'] = array(
'node' => array(
'table' => 'menu_links',
'left_table' => 'book',
'left_field' => 'mlid',
'field' => 'mlid',
),
);
$data['draggableviews_book_book_parent']['p'] = array(
'title' => t('All sub nodes of this book page.'),
'help' => t('All sub nodes of this book page.'),
'argument' => array(
'handler' => 'views_handler_argument_draggableviews_book',
),
);
return $data;
}