1 filter.module _filter_autop_tips($filter, $format, $long = FALSE)

Implements callback_filter_tips().

Provides help for the auto-paragraph filter.

See also

filter_filter_info()

Related topics

File

core/modules/filter/filter.module, line 2536
Framework for handling the filtering of content.

Code

function _filter_autop_tips($filter, $format, $long = FALSE) {
  // Don't show tips if CKEditor will automatically create paragraphs itself.
  if ($format->editor == 'ckeditor') {
    return;
  }

  if ($long) {
    return t('Lines and paragraphs are automatically recognized. The <br /> line break, <p> paragraph and </p> close paragraph tags are inserted automatically. If paragraphs are not recognized, add a couple blank lines.');
  }
  else {
    return t('Lines and paragraphs break automatically.');
  }
}