You are here

function editor_filter_info in Editor 7

Implements hook_filter_info().

1 call to editor_filter_info()
EditorFilterSettingsTestCase::testFilterDefaults in ./editor.test
Tests explicit and implicit default settings for filters.

File

includes/editor.filters.inc, line 64
Filter hook implementations and callbacks.

Code

function editor_filter_info() {
  $filters['editor_caption'] = array(
    'title' => t('Convert image captions to figure and figcaption elements'),
    'process callback' => '_editor_caption',
    'tips callback' => '_editor_caption_tips',
    'weight' => 4,
  );
  $filters['editor_align'] = array(
    'title' => t('Align images'),
    'process callback' => '_editor_align',
    'tips callback' => '_editor_align_tips',
    'weight' => 5,
  );

  // Assigns filter types for the Quick Edit module.
  if (module_exists('quickedit')) {
    $filters['editor_caption']['type'] = FILTER_TYPE_TRANSFORM_REVERSIBLE;
    $filters['editor_align']['type'] = FILTER_TYPE_TRANSFORM_REVERSIBLE;
  }
  return $filters;
}