function htmltidy_empty in HTML Tidy 6
Same name and namespace in other branches
- 7 htmltidy.module \htmltidy_empty()
Helper function for defaults in settings
Parameters
$var: the requested variable
$default: the default value
Return value
unknown_type the requested variable if set otherwise default
1 call to htmltidy_empty()
- htmltidy_string in ./
htmltidy.module - Process whatever we are given and return the htmltidy response The output and warnings will be returned as arrays by reference.
File
- ./
htmltidy.module, line 659 - The theme system, which controls the output of Drupal. The htmltidy module uses Tidy (http://tidy.sf.net) to properly format HTML for saving and display.
Code
function htmltidy_empty($var = NULL, $default = NULL) {
if (isset($var)) {
return $var;
}
else {
return $default;
}
}