function _typogrify_get_settings in Typogrify 6
Get the Typogrify settings for a filter format.
Parameters
integer $format: The format ID to fetch settings for.
Return value
array The current settings, merged with the default settings.
2 calls to _typogrify_get_settings()
- _typogrify_process in ./
typogrify.module - Processing function to apply the Typogrify filters
- _typogrify_settings in ./
typogrify.module - Typogrify filter settings form.
File
- ./
typogrify.module, line 287 - typogrify.module Typogrify: Brings typographical refinemnts to drupal
Code
function _typogrify_get_settings($format) {
// Load the stored settings, if any.
$settings = variable_get('typogrify_settings_' . $format, array());
// Then merge in our default settings.
$settings += _typogrify_default_settings();
return $settings;
}