You are here

function pathologic_filter_info in Pathologic 7.2

Same name and namespace in other branches
  1. 7.3 pathologic.module \pathologic_filter_info()
  2. 7 pathologic.module \pathologic_filter_info()

Implements hook_filter_info().

File

./pathologic.module, line 15
Pathologic text filter for Drupal.

Code

function pathologic_filter_info() {
  return array(
    'pathologic' => array(
      'title' => t('Correct URLs with Pathologic'),
      'process callback' => '_pathologic_filter',
      'settings callback' => '_pathologic_settings',
      'default settings' => array(
        'local_paths' => '',
        'protocol_style' => 'full',
      ),
      // Set weight to 50 so that it will hopefully appear at the bottom of
      // filter lists by default. 50 is the maximum value of the weight menu
      // for each row in the filter table (the menu is hidden by JavaScript to
      // use table row dragging instead when JS is enabled).
      'weight' => 50,
    ),
  );
}