You are here

protected function D3ViewsDataMapping::form2DNAV in d3.js 7

2-dimensional numeric array of associative array of row values.

Used for default data keys.

1 call to D3ViewsDataMapping::form2DNAV()
D3ViewsDataMapping::form2DNNV in modules/d3_views/includes/D3ViewsDataMapping.inc
2-dimensional numeric array of numeric array of row values.

File

modules/d3_views/includes/D3ViewsDataMapping.inc, line 103

Class

D3ViewsDataMapping

Code

protected function form2DNAV(&$form, &$form_state, $data, $key) {
  $element =& $form['fields'][$key];
  foreach ($data as $k => $datum) {

    // TODO: same as todo before this.
    if ($k == '_info') {
      continue;
    }
    $default_values = $this->plugin
      ->getDefaultValues($key, $k, $form_state);
    $this
      ->formRow($element[$k], $datum, $form_state, $default_values);
  }
}