How can I prevent a node from listing, programmatically? I want to select node by nid. Beacause of some reasons, I don't want to use hook_node_grants()
and hook_node_access_records()
I tried to change the _node_access_where_sql()
function in the core which creates where clause for use in fetching node listings but $node or $nid is not passed to the function so I can't select node by nid