Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MUR Drupal
d3_sankey
Commits
aba8d4ec
Commit
aba8d4ec
authored
Aug 19, 2016
by
M Parker
Browse files
Make it possible to add sub-tabs to Sankey examples.
parent
d4dfd97f
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/d3_sankey_examples/d3_sankey_examples.module
View file @
aba8d4ec
...
...
@@ -26,6 +26,16 @@ function d3_sankey_examples_menu() {
'type'
=>
MENU_LOCAL_TASK
,
);
// We want the Sankey tab to have sub-tabs so we can add examples for
// preprocessed data, but the default sub-tab needs to have the same settings
// as the parent tab, except for the type, title, and description.
$items
[
'd3/examples/sankey/default'
]
=
array
(
'type'
=>
MENU_DEFAULT_LOCAL_TASK
,
'title'
=>
'Raw data'
,
'description'
=>
'Creates a Sankey chart by specifying raw data.'
,
'weight'
=>
-
1
,
)
+
$items
[
'd3/examples/sankey'
];
return
$items
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment