You are here

function intlinks_filter_info in Internal Links 8

Same name and namespace in other branches
  1. 7.2 intlinks.module \intlinks_filter_info()
  2. 7 intlinks.module \intlinks_filter_info()

Implements hook_filter_info().

File

./intlinks.module, line 48
Input filters which rewrite internal links and/or unlink unpublished nodes.

Code

function intlinks_filter_info() {
  $filters['intlinks title'] = array(
    'title' => t('Internal links title filter'),
    'description' => t('Identifies internal links in content and adds an HTML "title" attribute (if none already exists), using the linked node\'s node title. Also re-writes links to "normal Drupal paths" (e.g. node/123) as path alias if an alias exists.'),
    'process callback' => 'intlinks_title_filter_process',
    //    'settings callback' => 'intlinks_title_filter_settings',
    'default settings' => array(
      'intlinks_title_display_tip' => 1,
    ),
    'tips callback' => 'intlinks_title_filter_tips',
  );
  $filters['intlinks hide bad'] = array(
    'title' => t('Internal links hide bad filter'),
    'description' => t('Identifies bad internal links in content (unpublished or non-existent) and suppresses their output'),
    'process callback' => 'intlinks_hide_bad_filter_process',
    //    'settings callback' => 'intlinks_hide_bad_filter_settings',
    'default settings' => array(
      'intlinks_hide_bad_display_tip' => 1,
    ),
    'tips callback' => 'intlinks_hide_bad_filter_tips',
  );
  return $filters;
}