function xbbcode_xbbcode_info in Extensible BBCode 8
Same name and namespace in other branches
- 8.2 xbbcode.module \xbbcode_xbbcode_info()
- 7 xbbcode.module \xbbcode_xbbcode_info()
Implements hook_xbbcode_info().
File
- ./
xbbcode.module, line 213 - The main module file containing hook implementations.
Code
function xbbcode_xbbcode_info() {
// Load the database interface.
module_load_include('inc', 'xbbcode', 'xbbcode.crud');
$custom_tags = xbbcode_custom_tag_load();
$tags = array();
foreach ($custom_tags as $name => $tag) {
$tags[$name] = array(
'description' => $tag->description,
'sample' => $tag->sample,
'markup' => !$tag->options['php'] ? $tag->markup : NULL,
'callback' => $tag->options['php'] ? '_xbbcode_custom_eval' : NULL,
'options' => $tag->options,
);
}
return $tags;
}