function hook_xbbcode_TAG_render in Extensible BBCode 8.2
Same name and namespace in other branches
- 8 xbbcode.api.php \hook_xbbcode_TAG_render()
- 7 xbbcode.api.php \hook_xbbcode_TAG_render()
Sample render callback.
Note: This is not really a hook. The function name is manually specified via the 'callback' key in hook_xbbcode_info().
Parameters
$tag: The tag to be rendered. This object has the following properties:
- name: Name of the tag
- content: The rendered text between opening and closing tags.
- source: The unrendered BBCode text between opening and closing tags.
- option: The single argument, if one was entered as in [tag=option].
- attr($name): A function that returns a named attribute's value.
Return value
HTML markup code. If NULL is returned, the tag will be left unrendered.
1 string reference to 'hook_xbbcode_TAG_render'
- hook_xbbcode_info in ./
xbbcode.api.php - Define tags that can be used by XBBCode.
File
- ./
xbbcode.api.php, line 91 - Hooks provided by the XBBCode module.
Code
function hook_xbbcode_TAG_render($tag) {
return highlight_string($tag->source, TRUE);
}