You are here

function xbbcode_table_xbbcode_info in Extensible BBCode 8

Same name and namespace in other branches
  1. 7 xbbcode_table/xbbcode_table.module \xbbcode_table_xbbcode_info()

Implements hook_xbbcode_info().

File

xbbcode_table/xbbcode_table.module, line 11
xbbcode_table.module The module file, containing hook implementations.

Code

function xbbcode_table_xbbcode_info() {
  $tags['table'] = array(
    'callback' => '_xbbcode_table_render',
    'description' => t('Create a table from comma-separated data. The tag option contains an optional caption and column headers; a prefix of ! or # aligns the column to the center or the right, respectively.'),
    'sample' => t("[table=Caption;!Item,Color,#Amount]\nFish,Red,1\nFish,Blue,2\n[/table]"),
  );
  return $tags;
}