Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Implements hook_oa_responsive_regions_positions_alter().
*/
function oa_dashboard_oa_responsive_regions_positions_alter(&$positions) {
// We will keep the top position for the oa navbar so we unset it here.
unset($positions['top']);
}
@shadcn
shadcn / gist:6667198
Created September 23, 2013 06:56
Responsive panels regions hooks for OA2
<?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']);
}
@shadcn
shadcn / gist:5490042
Last active December 16, 2015 20:09
Drupal 7 - Get breadcrumb by node id.
<?php
function _get_breadcrumb_by_nid($nid) {
$node = node_load($nid);
// If a node is not found, return.
if (!$node) {
return;
}