You are here

function nodeorder_vocabulary_can_be_ordered in Node Order 5

Same name and namespace in other branches
  1. 6 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_menu in ./nodeorder.module
Implementation of hook_menu().
nodeorder_overview_terms in ./nodeorder.module
Display a tree of all the terms in a vocabulary, with options to order nodes within each one.

File

./nodeorder.module, line 576

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_num_rows($result)) {
    return TRUE;
  }
  return FALSE;
}