function crumbs_Admin_WeightsTable::addSectionHeader in Crumbs, the Breadcrumbs suite 7.2
Parameters
string $section_key:
string $key:
array $child:
1 call to crumbs_Admin_WeightsTable::addSectionHeader()
- crumbs_Admin_WeightsTable::addElement in lib/
Admin/ WeightsTable.php
File
- lib/
Admin/ WeightsTable.php, line 148
Class
- crumbs_Admin_WeightsTable
- This class is a helper for theme_crumbs_weights_tabledrag()
Code
function addSectionHeader($section_key, $key, $child) {
$title = $child['#title'];
unset($child['#description']);
unset($child['#title']);
$header = '<h3>' . $title . '</h3>' . drupal_render($child);
$this->sections[$section_key][$key]['data'][]['data'] = $header;
}