function _draggableviews_book_access in DraggableViews 7.2
Check whether item has children.
1 string reference to '_draggableviews_book_access'
- draggableviews_book_menu_alter in draggableviews_book/
draggableviews_book.module - Implements hook_menu_alter().
File
- draggableviews_book/
draggableviews_book.module, line 35
Code
function _draggableviews_book_access($nid) {
return db_query('SELECT has_children FROM {menu_links} WHERE module = :module AND link_path = :link_path', array(
':module' => 'book',
':link_path' => 'node/' . $nid,
))
->fetchField();
}