function _hansel_dot_link in Hansel breadcrumbs 8
Same name and namespace in other branches
- 7 export/hansel_export.module \_hansel_dot_link()
 
Generate a graphiz node string
a -> b [ label = "abc"; color = "yellow"; ]
1 call to _hansel_dot_link()
- hansel_export_dot in export/
hansel_export.module  - Generete an export to dot format for the current configuration.
 
File
- export/
hansel_export.module, line 188  
Code
function _hansel_dot_link($from_id, $to_id, $label = '', $color = 'yellow', $type = NULL) {
  if (isset($type)) {
    $label = '\\n\\<\\<' . $type . '\\>\\>\\n' . $label;
  }
  return "\n  node_{$from_id} -> node_{$to_id}" . (!empty($label) ? " [ label=\"{$label}\" ]" : '');
}