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