You are here

function _hansel_dot_node in Hansel breadcrumbs 7

Same name and namespace in other branches
  1. 8 export/hansel_export.module \_hansel_dot_node()

Generate a graphiz node string

node [ label = "abc"; color = "yellow"; ]

Parameters

$id: id is unique allready so we concat the id with node_

$label:

$color:

$type:

1 call to _hansel_dot_node()
_hansel_export_dot_node in export/hansel_export.module
Prepare for graphviz node and link strings

File

export/hansel_export.module, line 173

Code

function _hansel_dot_node($id, $label, $color = 'yellow', $type = NULL) {
  if (isset($type)) {
    $label .= '\\n\\<\\<' . $type . '\\>\\>';
  }
  return "\n  node_{$id} [ label = \"{$label}\"; color = \"{$color}\"; ]";
}