function variable_admin_page_undefined in Variable 6
List of variables in db not declared by any module
1 string reference to 'variable_admin_page_undefined'
- variable_admin_menu in variable_admin/
variable_admin.module - Implementation of hook_menu().
File
- variable_admin/
variable_admin.pages.inc, line 100 - Variable API module - Admin UI
Code
function variable_admin_page_undefined() {
$variables = variable_info();
$result = db_query("SELECT * FROM {variable} ORDER BY name");
while ($variable = db_fetch_object($result)) {
if (!isset($variables[$variable->name])) {
$rows[] = array(
$variable->name,
check_plain($variable->value),
);
}
}
if (!empty($rows)) {
$header = array(
t('Name'),
t('Value'),
);
return theme('table', $header, $rows);
}
else {
return t('No undefined variables found.');
}
}