You are here

function theme_xbbcode_settings_handlers_format in Extensible BBCode 8.2

Same name and namespace in other branches
  1. 8 xbbcode.admin.inc \theme_xbbcode_settings_handlers_format()
  2. 7 xbbcode.admin.inc \theme_xbbcode_settings_handlers_format()

Renders the handlers subform as a table.

1 string reference to 'theme_xbbcode_settings_handlers_format'
xbbcode_theme in ./xbbcode.module
Implements hook_theme().
1 theme call to theme_xbbcode_settings_handlers_format()
XBBCodeHandlerForm::buildFormHandlers in src/Form/XBBCodeHandlerForm.php
Generate the handler subform.

File

./xbbcode.module, line 91
The main module file containing hook implementations.

Code

function theme_xbbcode_settings_handlers_format($variables) {
  $fieldset = $variables['fieldset'];
  $table =& $fieldset['tags'];
  $selectors =& $fieldset['extra']['tags'];
  $table['#attributes']['id'] = 'xbbcode-handlers';
  foreach (array_keys($table['#options']) as $tag) {
    $table['#options'][$tag]['module']['data'] = drupal_render($selectors[$tag]['module']);
  }
  ksort($table['#options']);
  $html = drupal_render($table);
  foreach (Element::children($fieldset) as $element) {
    $html .= drupal_render($fieldset[$element]);
  }
  return $html;
}