Commit 8264e936 authored by M Parker's avatar M Parker

Fix some coding standars issues.

parent f5c9a1f3
......@@ -226,15 +226,15 @@ function d3_sankey_table_group_pp_field_formatter_view($entity_type, $entity, $f
foreach ($items as $delta => $item) {
// Apply the formatter settings to the chart.
$chart = array(
'sankeyType' => (string) $settings['sankeyType'],
'width' => (int) $settings['width'],
'height' => (int) $settings['height'],
'nodeWidth' => (int) $settings['nodeWidth'],
'nodePadding' => (int) $settings['nodePadding'],
'spread' => (bool) $settings['spread'],
'iterations' => (int) $settings['iterations'],
'alignLabel' => (string) $settings['alignLabel'],
) + _d3_sankey_table_group_pp_default_chart_options();
'sankeyType' => (string) $settings['sankeyType'],
'width' => (int) $settings['width'],
'height' => (int) $settings['height'],
'nodeWidth' => (int) $settings['nodeWidth'],
'nodePadding' => (int) $settings['nodePadding'],
'spread' => (bool) $settings['spread'],
'iterations' => (int) $settings['iterations'],
'alignLabel' => (string) $settings['alignLabel'],
) + _d3_sankey_table_group_pp_default_chart_options();
// If the user chose any node or link colors, add them to the chart.
_d3_sankey_add_colors_to_chart($chart, 'node_colors', $settings['node_colors']);
......@@ -250,7 +250,7 @@ function d3_sankey_table_group_pp_field_formatter_view($entity_type, $entity, $f
// Note that we cannot reliably get the entity ID (it could be at
// $entity->nid or $entity->uid depending on the entity type), so we
// have to rely on drupal_html_id() to resolve this instance.
//
// Because there could be two separate fields showing sankey charts in
// the same entity.
$field['field_name'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment