You are here

function _typogrify_default_settings in Typogrify 6

Return the default settings.

2 calls to _typogrify_default_settings()
typogrify_update_6002 in ./typogrify.install
Upgrade Typogrify settings to the new format.
_typogrify_get_settings in ./typogrify.module
Get the Typogrify settings for a filter format.

File

./typogrify.module, line 299
typogrify.module Typogrify: Brings typographical refinemnts to drupal

Code

function _typogrify_default_settings() {
  $settings = array(
    'smartypants_enabled' => 1,
    'smartypants_hyphens' => 3,
    'wrap_ampersand' => 1,
    'widont_enabled' => 1,
    'wrap_caps' => 1,
    'wrap_initial_quotes' => 1,
    'ligatures' => array(),
    'arrows' => array(),
  );

  // Fetch all our unicode conversion, and default them all to disabled.
  $uc_map = unicode_conversion_map('nested');
  foreach ($uc_map['ligature'] as $ascii => $ligature) {
    $settings['ligatures'][$ascii] = 0;
  }
  foreach ($uc_map['arrow'] as $ascii => $arrow) {
    $settings['arrows'][$ascii] = 0;
  }
  return $settings;
}