You are here

protected function crumbs_Admin_WeightsTable::addRow in Crumbs, the Breadcrumbs suite 7.2

Parameters

string $section_key:

string $key:

array $child:

1 call to crumbs_Admin_WeightsTable::addRow()
crumbs_Admin_WeightsTable::addElement in lib/Admin/WeightsTable.php

File

lib/Admin/WeightsTable.php, line 161

Class

crumbs_Admin_WeightsTable
This class is a helper for theme_crumbs_weights_tabledrag()

Code

protected function addRow($section_key, $key, $child) {

  /** @var crumbs_Container_MultiWildcardDataOffset $meta */
  $meta = $child['#crumbs_rule_info'];
  $child['weight']['#attributes']['class'][] = 'crumbs-weight-element';
  $title = $child['#title'];
  unset($child['#title']);
  $cells = array(
    '<code>' . $title . '</code>  ',
    drupal_render($child),
  );
  $this
    ->rowAddMethodInfo($cells, $meta);
  $this->sections[$section_key][$key] = array(
    'data' => $cells,
    'class' => array(
      'draggable',
    ),
  );
  $this->descriptions[$key] = $meta
    ->getAll('descriptions');
}