You are here

function xbbcode_basic_render in Extensible BBCode 5

Same name and namespace in other branches
  1. 6 xbbcode_basic/xbbcode_basic.module \xbbcode_basic_render()
1 call to xbbcode_basic_render()
xbbcode_basic_xbbcode in xbbcode_basic/xbbcode_basic.module

File

xbbcode_basic/xbbcode_basic.module, line 233

Code

function xbbcode_basic_render($delta, $tag) {
  switch ($delta) {
    case 'php':
    case 'code':
      return xbbcode_basic_render_code($delta, $tag->content);
    case 'list':
      return xbbcode_basic_render_list($tag->content, $tag->option);
    case 'img':
      return xbbcode_basic_render_img($tag);
    case 'define':
      return xbbcode_basic_render_define($tag->content);
    case 'node':
      return xbbcode_basic_render_node($tag->option, $tag->content);
  }
}