aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2009-09-28 23:57:23 -0300
committerSilvio <s1lv10@uol.com.br>2009-09-28 23:57:23 -0300
commit7dba2312a71b38d6bfce8397764086d47425ab62 (patch)
tree306bc427414b8ac6058ab8267afae29c343d4bb2
parent0cc41dd2c40452f2a3e6ec0003c54ffd86de7a14 (diff)
downloadfinder_menu-7dba2312a71b38d6bfce8397764086d47425ab62.tar.gz
finder_menu-7dba2312a71b38d6bfce8397764086d47425ab62.tar.bz2
Starting to change module to 'Finder Menu'
-rw-r--r--dynamic_taxonomy.info5
-rw-r--r--finder_menu.info5
-rw-r--r--finder_menu.module (renamed from dynamic_taxonomy.module)20
3 files changed, 15 insertions, 15 deletions
diff --git a/dynamic_taxonomy.info b/dynamic_taxonomy.info
deleted file mode 100644
index 3627dbd..0000000
--- a/dynamic_taxonomy.info
+++ /dev/null
@@ -1,5 +0,0 @@
-; $Id$
-name = Dynamic Taxonomy
-description = Show taxonomy items in a dynamic select list.
-core = 6.x
-dependencies[] = taxonomy
diff --git a/finder_menu.info b/finder_menu.info
new file mode 100644
index 0000000..25244e2
--- /dev/null
+++ b/finder_menu.info
@@ -0,0 +1,5 @@
+; $Id$
+name = Finder Menu.
+description = Show menu with Finder style.
+core = 6.x
+dependencies[] =
diff --git a/dynamic_taxonomy.module b/finder_menu.module
index a78d33f..9eb17b6 100644
--- a/dynamic_taxonomy.module
+++ b/finder_menu.module
@@ -4,29 +4,29 @@
/**
* Implementation of hook_block();
*/
-function dynamic_taxonomy_block($op = 'list', $delta = 0, $edit = array()) {
+function finder_taxonomy_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
- $blocks[0]['info'] = t('Dynamic Taxonomy');
+ $blocks[0]['info'] = t('Finder Menu');
$blocks[0]['cache'] = BLOCK_NO_CACHE;
return $blocks;
case 'configure':
- $form['dynamic_taxonomy_vid'] = array(
+ $form['finder_taxonomy_vid'] = array(
'#type' => 'radios',
'#title' => t('Select the vocabulary to list'),
- '#default_value' => variable_get('dynamic_taxonomy_vid', 1),
- '#options' => dynamic_taxonomy_get_vocabularies(),
+ '#default_value' => variable_get('finder_taxonomy_vid', 1),
+ '#options' => finder_taxonomy_get_vocabularies(),
);
return $form;
case 'save':
- variable_set('dynamic_taxonomy_vid', (int) $edit['dynamic_taxonomy_vid']);
+ variable_set('finder_taxonomy_vid', (int) $edit['finder_taxonomy_vid']);
break;
case 'view':
- $vid = variable_get('dynamic_taxonomy_vid', 1);
- $tree = dynamic_taxonomy_get_terms($vid);
+ $vid = variable_get('finder_taxonomy_vid', 1);
+ $tree = finder_taxonomy_get_terms($vid);
$block['content'] = theme('item_list', $tree);
return $block;
}
@@ -35,7 +35,7 @@ function dynamic_taxonomy_block($op = 'list', $delta = 0, $edit = array()) {
/**
* Get all vocabularies;
*/
-function dynamic_taxonomy_get_vocabularies() {
+function finder_taxonomy_get_vocabularies() {
$result = db_query('SELECT vid, name from {vocabulary}');
while ($item = db_fetch_object($result)) {
$items[$item->vid] = $item->name;
@@ -43,7 +43,7 @@ function dynamic_taxonomy_get_vocabularies() {
return $items;
}
-function dynamic_taxonomy_get_terms($vid = null) {
+function finder_taxonomy_get_terms($vid = null) {
if ($vid != null) {
$tree = taxonomy_get_tree($vid);
foreach ($tree as $term) {