function _disable_breadcrumbs_get_all_checked_nodes in Disable breadcrumbs 7
Gets all nodes that have disable_breadcrumb checked.
Parameters
$header: -optional, header array variable for table.
Return value
db select result - needs to be iterated through.
1 call to _disable_breadcrumbs_get_all_checked_nodes()
- theme_disable_breadcrumbs_checked_nodes in ./
disable_breadcrumbs.admin.inc - Produce sortable table of currently checked nodes
File
- ./
disable_breadcrumbs.admin.inc, line 179 - Admin settings page and checked nodes summary table.
Code
function _disable_breadcrumbs_get_all_checked_nodes($header = array()) {
$query = db_select('node', 'n')
->extend('pagerDefault')
->extend('tableSort')
->orderByHeader($header)
->fields('n', array(
'nid',
'type',
'title',
))
->limit(10)
->addTag('node_access');
$query
->innerJoin('disable_breadcrumbs', 'db', 'n.nid = db.nid');
return $query
->execute();
}