function htmltidy_default_settings in HTML Tidy 6
Same name and namespace in other branches
- 7 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_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.
- _htmltidy_settings in ./
htmltidy.module - Drupal hook that allows an administrator to view or modify module settings.
File
- ./
htmltidy.module, line 487 - 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_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' => 0,
'doctype' => 'auto',
'enclosetext' => 0,
'encloseblocktext' => 0,
'wordcleanup' => 1,
),
'debug' => array(
'warnings' => 0,
'verbose' => 0,
'runtwice' => 1,
),
);
return $default_settings;
}