settings. */ public function settingsForm(array $form, array &$form_state); /** * Prepares the text for processing. * * Filters should not use the prepare method for anything other than escaping, * because that would short-circuit the control the user has over the order in * which filters are applied. * * @param string $text * The text string to be filtered. * @param string $langcode * The language code of the text to be filtered. * @param bool $cache * A Boolean indicating whether the filtered text is going to be cached in * {cache_filter}. * @param string $cache_id * The ID of the filtered text in {cache_filter}, if $cache is TRUE. * * @return string * The prepared, escaped text. */ public function prepare($text, $langcode, $cache, $cache_id); /** * Performs the filter processing. * * @param string $text * The text string to be filtered. * @param string $langcode * The language code of the text to be filtered. * @param bool $cache * A Boolean indicating whether the filtered text is going to be cached in * {cache_filter}. * @param string $cache_id * The ID of the filtered text in {cache_filter}, if $cache is TRUE. * * @return string * The filtered text. */ public function process($text, $langcode, $cache, $cache_id); /** * Generates a filter's tip. * * A filter's tips should be informative and to the point. Short tips are * preferably one-liners. * * @param bool $long * Whether this callback should return a short tip to display in a form * (FALSE), or whether a more elaborate filter tips should be returned for * theme_filter_tips() (TRUE). * * @return string|null * Translated text to display as a tip, or NULL if this filter has no tip. * * @todo Split into getSummaryItem() and buildGuidelines(). */ public function tips($long = FALSE); }