function htmltidy_default_settings in HTML Tidy 7
Same name and namespace in other branches
- 6 htmltidy.module \htmltidy_default_settings()
Return an array of the expected HTML tidy options.
Prefilling them in with sane values one place drastically reduces the php log notices and the need to check if a value has been set all the time..
2 calls to htmltidy_default_settings()
- htmltidy_filter_htmltidy_settings in ./
htmltidy.filter.inc - Implementation of hook_filter_FILTER_settings().
- 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 277 - The htmltidy module uses Tidy (http://tidy.sf.net) to properly format HTML for saving and display.
Code
function htmltidy_default_settings() {
$default_settings = array(
'paths' => array(
'app' => '/usr/bin/tidy',
'config' => '',
),
'format' => array(
'process_input' => FALSE,
'indent' => 1,
'wordwrap' => 80,
'wrapphp' => 1,
'tidymark' => 0,
'clean' => 1,
'xhtml' => 1,
'doctype' => 'auto',
'enclosetext' => 0,
'encloseblocktext' => 0,
'wordcleanup' => 1,
),
'debug' => array(
'warnings' => 0,
'verbose' => 0,
'runtwice' => 1,
),
);
return $default_settings;
}