function nodeorder_can_be_ordered in Node Order 5
Same name and namespace in other branches
- 6 nodeorder.module \nodeorder_can_be_ordered()
- 7 nodeorder.module \nodeorder_can_be_ordered()
Returns TRUE if the node has terms in any orderable vocabulary...
1 call to nodeorder_can_be_ordered()
- nodeorder_nodeapi in ./
nodeorder.module - Implementation of hook_nodeapi().
File
- ./
nodeorder.module, line 543
Code
function nodeorder_can_be_ordered($node) {
$sql = "SELECT v.vid AS vid FROM {vocabulary_node_types} vnt JOIN {vocabulary} v ON vnt.vid = v.vid WHERE vnt.type = '%s' AND v.module = 'nodeorder'";
$result = db_query($sql, $node->type);
if (db_num_rows($result)) {
return TRUE;
}
return FALSE;
}