You are here

function _taxonomy_menu_check_variable in Taxonomy menu 6.2

Same name and namespace in other branches
  1. 7 taxonomy_menu.module \_taxonomy_menu_check_variable()

Checks to see if the variable has changed.

Parameters

$variable: name of variable

Return value

Boolean TRUE if it has changed

1 call to _taxonomy_menu_check_variable()
taxonomy_menu_vocab_submit in ./taxonomy_menu.module
Submit handler for the extra settings added to the taxonomy vocab form.

File

./taxonomy_menu.module, line 191
It Generates menu links for all selected taxonomy terms

Code

function _taxonomy_menu_check_variable($variable, $new_value) {
  if ($new_value != variable_get($variable, FALSE)) {
    return TRUE;
  }
  return FALSE;
}