You are here

function vars_test_search_default_value in Variable API 6.2

Same name and namespace in other branches
  1. 6 tests/vars.test \vars_test_search_default_value()
  2. 7.2 tests/vars.test \vars_test_search_default_value()
  3. 7 tests/vars.test \vars_test_search_default_value()

Checks the default values table doesn't contain a value for the Drupal variable passed as argument.

Parameters

$name: The name of the Drupal variable.

$module: The module defining the variable.

Return value

TRUE, if the table contains the default value for the Drupal variable.

1 call to vars_test_search_default_value()
VarsModuleUninstallationTestCase::testModuleUninstallation in tests/vars.test

File

tests/vars.test, line 344
Test file for the Variable API module.

Code

function vars_test_search_default_value($name, $module) {
  return (bool) db_query_range("SELECT 1 FROM {variable_default} WHERE name = '%s' AND module = '%s'", $name, $module, 0, 1);
}