You are here

function _bear_necessities_kill_nbsp_tips in Bear 7

Same name and namespace in other branches
  1. 7.2 modules/bear_necessities/bear_necessities.module \_bear_necessities_kill_nbsp_tips()

Filter tips.

1 string reference to '_bear_necessities_kill_nbsp_tips'
bear_necessities_filter_info in modules/bear_necessities/bear_necessities.module
Implements hook_filter_info().

File

modules/bear_necessities/bear_necessities.module, line 118

Code

function _bear_necessities_kill_nbsp_tips($filter, $format, $long = FALSE) {
  if (!$long) {

    // This string will be shown in the content add/edit form.
    return t('Don\'t use non-breaking spaces.  Ever.');
  }
  else {

    // And this one on the "Filter Tips" page.
    return t('Non-breaking spaces are evil and will be eradicated.');
  }
}