function htmltidy_get_formats in HTML Tidy 7
Get all of the formats that have the HTML Tidy filter enabled.
Return value
An array of the formats, keyed by the machine name of each format, where the values are the settings of each one.
2 calls to htmltidy_get_formats()
- htmltidy_node_prepare in ./
htmltidy.node.inc - Implementation of hook_node_prepare().
- htmltidy_node_validate in ./
htmltidy.node.inc - Implementation of hook_node_validate().
File
- ./
htmltidy.module, line 464 - The htmltidy module uses Tidy (http://tidy.sf.net) to properly format HTML for saving and display.
Code
function htmltidy_get_formats() {
return db_query('SELECT format, settings FROM {filter}
WHERE module = :module AND name = :name AND status = 1', array(
'module' => 'htmltidy',
'name' => 'htmltidy',
))
->fetchAllKeyed();
}