Commit bd0fec9a authored by Dries's avatar Dries
Browse files

- Patch #1285098 by tim.plunkett: toolbar Drawer uses invalid Render API key.

parent bb9430f5
......@@ -263,10 +263,11 @@ function toolbar_view() {
'toolbar-drawer',
'clearfix',
);
if(_toolbar_is_collapsed()) {
if (_toolbar_is_collapsed()) {
$toolbar_drawer_classes[] = 'collapsed';
}
$build['toolbar_drawer_classes'] = implode(' ', $toolbar_drawer_classes);
$build['toolbar_drawer']['#type'] = 'container';
$build['toolbar_drawer']['#attributes']['class'] = $toolbar_drawer_classes;
return $build;
}
......
......@@ -31,7 +31,5 @@
<?php endif; ?>
</div>
<div class="<?php echo $toolbar['toolbar_drawer_classes']; ?>">
<?php print render($toolbar['toolbar_drawer']); ?>
</div>
<?php print render($toolbar['toolbar_drawer']); ?>
</div>
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