Last updated May 30, 2005. Created by drumm on May 30, 2005.
Edited by puregin. Log in to edit this page.
Filter tips are now output through the format selector. Modules no longer need to call filter_tips_short() to display them.
A module's filter tips are returned through the filter_tips hook:
<?php
function hook_filter_tips($delta, $format, $long = false) {
if ($long) {
return t("Long tip");
}
else {
return t("Short tip");
}
}
?>As in the filter hook you can ignore the $delta parameter if you're upgrading an existing module. If your filter's tips depend on its settings, make sure you use $format to retrieve the setting for the current input format. $long tells you whether to return long or short tips.