You are here

function nodeorder_vocabulary_can_be_ordered in Node Order 6

Same name and namespace in other branches
  1. 5 nodeorder.module \nodeorder_vocabulary_can_be_ordered()
  2. 7 nodeorder.module \nodeorder_vocabulary_can_be_ordered()

Returns TRUE if the vocabulary is orderable...

2 calls to nodeorder_vocabulary_can_be_ordered()
nodeorder_overview_terms in ./nodeorder.module
Display a tree of all the terms in a vocabulary, with options to order nodes within each one.
nodeorder_taxonomy_order_access in ./nodeorder.module
Custom access function which determines whether or not the user is allowed to reorder nodes and if the vocabulary is orderable

File

./nodeorder.module, line 639
Nodeorder module.

Code

function nodeorder_vocabulary_can_be_ordered($vid) {
  $sql = "SELECT * FROM {vocabulary} WHERE module = 'nodeorder' AND vid = %d";
  $result = db_query($sql, $vid);
  if (db_fetch_object($result)) {
    return TRUE;
  }
  return FALSE;
}