Created
September 23, 2013 06:56
-
-
Save shadcn/6667198 to your computer and use it in GitHub Desktop.
Responsive panels regions hooks for OA2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_responsive_panels_regions_positions_alter(). | |
*/ | |
function oa_dashboard_responsive_panels_regions_positions_alter(&$positions) { | |
// We use the top position for the breadcrumb only, so we unset it here. | |
unset($positions['top']); | |
} | |
/** | |
* Implements hook_responsive_panels_regions_alter(). | |
*/ | |
function oa_dashboard_responsive_panels_regions_alter(&$regions) { | |
// Manually add our top region here. | |
$regions['top'] = array( | |
'settings' => array( | |
'position' => 'top', | |
), | |
'icon' => 'icon-home', | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment