You are here

function intlinks_filter_tips in Internal Links 6

Implementation of hook_filter_tips().

File

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

Code

function intlinks_filter_tips($delta, $format, $long = FALSE) {
  switch ($delta) {
    case 0:
      if ($long) {
        return t('Adds node titles to internal links found in content (node titles are put in the HTML "title" attribute, if no title attribute already exists). It also replaces "normal" Drupal paths (e.g. node/123) with a path alias, if one exists. All links *must* be root-relative. It ignores document-relative and absolute links.');
      }
      else {
        return t('Adds node titles to internal links found in content (as HTML "title" attribute).');
      }
      break;
    case 1:
      if ($long) {
        return t('Any root-relative links in filtered content which lead to unpublished content or which do not exist are unlinked. Use with caution as it *should* recognize Views paths (and other special paths), but could possibly remove valid links if all does not go as planned. No known issues here (yet), but beware; this *is* experimental.');
      }
      else {
        return t('Strips broken/unpublished internal links from output.');
      }
      break;
  }
}