function _node_noindex_node_set_noindex in Node Noindex 6
Same name and namespace in other branches
- 7 node_noindex.module \_node_noindex_node_set_noindex()
Sets the noindex option to true on the node.
Parameters
object $node:
1 call to _node_noindex_node_set_noindex()
- node_noindex_nodeapi in ./
node_noindex.module - Implementation of hook_nodeapi().
File
- ./
node_noindex.module, line 135
Code
function _node_noindex_node_set_noindex($node) {
_node_noindex_node_delete_noindex($node);
db_query('INSERT INTO {node_noindex} SET nid = %d, noindex = %d', $node->nid, $node->noindex);
}