function sbp_test_db_rewrite_sql in Search by Page 6
Implementation of hook_db_rewrite_sql().
Ensures that there is something to look for in the join/where for testing the search_by_page_unique_rewrite function, but only during that one test.
File
- tests/
sbp_test.module, line 24 - Module file for Search by Page testing.
Code
function sbp_test_db_rewrite_sql($query, $primary_table, $primary_field) {
if ($primary_table == 'abc_n') {
return array(
'join' => 'INNER JOIN {node_access} na ON na.nid = abc_n.nid',
'where' => 'na.grant_view >= 1',
);
}
return array(
'',
'',
);
}