Main functions of the MO Paragraph trimmer filter. More...
Enumerations | |
enum | MO_TRIMMER_FILTER_VERSION |
Define the version of the MO Trimmer Filter module. More... | |
Functions | |
mo_trimmer_filter_help ($section) | |
Implementation of hook_help(). | |
mo_trimmer_filter_filter_tips ($delta, $format, $long=FALSE) | |
Implementation of hook_filter_tips(). | |
mo_trimmer_filter_filter ($op, $delta=0, $format=-1, $text= '') | |
Implementation of hook_filter(). |
Implementation of the main functions of the MO Paragraph trimmer filter.
http://www.m2osw.com/mo_trimmer_filter contact@m2osw.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This variable defines the version of the MO Trimmer Filter module. This will always be the same as the version defined in Drupal (throught the .info file.)
mo_trimmer_filter_filter | ( | $ | op, | |
$ | delta = 0 , |
|||
$ | format = -1 , |
|||
$ | text = '' | |||
) |
This function defines the filter.
We ignore the prepare operation (passthrough). The result of this filter can be cached.
[in] | $op | The operation to run |
[in] | $delta | The filter to be applied |
[in] | $format | The format where the filter is defined |
[in] | $text | The text being filtered |
References _mo_trimmer_filter_process(), and _mo_trimmer_filter_settings().
mo_trimmer_filter_filter_tips | ( | $ | delta, | |
$ | format, | |||
$ | long = FALSE | |||
) |
Returns quick tips about the trimmer filter. This help is shown when the filter can be chosen (short) and when the user selects a format (long).
[in] | $delta | Defines the filter in action |
[in] | $format | Defines the format in action (i.e. Full Html, etc.) |
[in] | $long | Defines whether short or long helps are to be returned |
mo_trimmer_filter_help | ( | $ | section | ) |
Gives brief help information about the MO Paragraph trimmer filter.
[in] | $section | Which help needs to be displayed |