hook_filter_tips

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

developer/hooks/core.php, строка 397

Версии
5 – 6
hook_filter_tips($delta, $format, $long = false)

Предоставляет советы по использованию фильтров пользовательского ввода.

A module's tips should be informative and to the point. Short tips are preferably one-liners.

Параметры

$delta Which of this module's filters to use. Modules which only implement one filter can ignore this parameter.

$format Which format we are providing tips for.

$long If set to true, long tips are requested, otherwise short tips are needed.

Возвращаемое значение

The text of the filter tip.

Связанные темы

Код

<?php
function hook_filter_tips($delta, $format, $long = false) {
  if ($long) {
    return t('To post pieces of code, surround them with &lt;code&gt;...&lt;/code&gt; tags. For PHP code, you can use &lt;?php ... ?&gt;, which will also colour it based on syntax.');
  }
  else {
    return t('You may post code using &lt;code&gt;...&lt;/code&gt; (generic) or &lt;?php ... ?&gt; (highlighted PHP) tags.');
  }
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему