You are here

function taxonomy_menu_get_option in Taxonomy menu 6.3

return the value of an option

Parameters

$name:

$type:

Return value

value of the option

2 calls to taxonomy_menu_get_option()
taxonomy_menu_save_option in ./taxonomy_menu.database.inc
Save the taxonomy options. Check to see if the option exists first
_taxonomy_menu_get_options in ./taxonomy_menu.module
Helper Functoin for taxonomy_menu_get_options

File

./taxonomy_menu.database.inc, line 88
Taxonomy Menu functions that access the db

Code

function taxonomy_menu_get_option($name, $type, $default, $type_key = '') {
  $option = db_result(db_query("SELECT value FROM {taxonomy_menu_options} WHERE name = '%s' AND type = '%s' and type_key = '%s'", $name, $type, $type_key));
  return isset($option) ? $option : $default;
}