You are here

function _footnotes_filter_tips in Footnotes 7.2

Same name and namespace in other branches
  1. 7.3 footnotes.module \_footnotes_filter_tips()

Short tips are provided on the content editing screen, while long tips are provided on a separate linked page. Short tips are optional, but long tips are highly recommended.

1 string reference to '_footnotes_filter_tips'
footnotes_filter_info in ./footnotes.module
Implementation of hook_filter_info().

File

./footnotes.module, line 43
The Footnotes module is a filter that can be used to insert automatically numbered footnotes into Drupal texts.

Code

function _footnotes_filter_tips($filter, $format, $long = FALSE) {
  if ($long) {
    return t('You can insert footnotes directly into texts with <code>[fn]This text becomes a footnote.[/fn]</code>. This will be replaced with a running number (the footnote reference) and the text within the [fn] tags will be moved to the bottom of the page (the footnote). See %link for additional usage options.', array(
      '%link' => '<a href="http://drupal.org/project/footnotes">' . t('Footnotes Readme page') . '</a>',
    ));
  }
  else {
    return t('Use [fn]...[/fn] (or &lt;fn&gt;...&lt;/fn&gt;) to insert automatically numbered footnotes.');
  }
}