diff options
-rw-r--r-- | jquery_drawer.module | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/jquery_drawer.module b/jquery_drawer.module index 6def927..4a49162 100644 --- a/jquery_drawer.module +++ b/jquery_drawer.module @@ -35,12 +35,16 @@ function jquery_drawer_block($op = 'list', $delta = 0, $edit = array()) { return $blocks; case 'configure': + $query = 'SELECT vid, name from {vocabulary}'; + $result = db_query(db_rewrite_sql($query)); + while ($vocabulary = db_fetch_object($result)) { + $vocabularies[$vocabulary->vid] = $vocabulary->name; + } $form['jquery_drawer'] = array( '#type' => 'select', '#title' => t('Select the vocabulary to list'), '#default_value' => variable_get('jquery_drawer', '1'), - // TODO: won't work with taxonomy_get_vocabularies() - '#options' => menu_parent_options(taxonomy_get_vocabularies(), 0), + '#options' => $vocabularies, ); return $form; |