function xbbcode_list_xbbcode_info in Extensible BBCode 8
Same name and namespace in other branches
- 7 xbbcode_list/xbbcode_list.module \xbbcode_list_xbbcode_info()
File
- xbbcode_list/
xbbcode_list.module, line 3
Code
function xbbcode_list_xbbcode_info() {
$sample = t("[*] fruit\n[**] apples\n[**] bananas\n[*] animals\n[**] cat\n[**] dog");
$tags['list'] = array(
'callback' => '_xbbcode_list_render',
'description' => t('Formats a list of items in the default style.'),
'sample' => '[list]' . $sample . '[/list]',
);
$tags['ol'] = array(
'callback' => '_xbbcode_list_render',
'description' => t('Formats a numbered list of items.'),
'sample' => '[ol]' . $sample . '[/ol]',
);
$tags['ul'] = array(
'callback' => '_xbbcode_list_render',
'description' => t('Formats a non-numbered list of items.'),
'sample' => '[ul]' . $sample . '[/ul]',
);
return $tags;
}