Created
March 6, 2014 19:37
-
-
Save scottalan/9397693 to your computer and use it in GitHub Desktop.
The order of panes in a region as it relates to features.
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 | |
//This is the default order exported to the oa_panopoly_users.features.inc file: | |
$data['user:user:default']->display->panels['contentheader'] = array( | |
0 => 'new-d3a2a9fb-f88a-4730-bfab-c36f4e0af395', | |
1 => 'new-faf0ad46-b575-4f96-874d-9a4548cc8da3', | |
2 => 'new-a617e554-6ad7-4d25-9d89-627d130d8be3', | |
); | |
// This is what features wants to see as far as determining whether there is a diff or not. | |
// If I change the order to match this then the panes get reordered in the UI. | |
$data['user:user:default']->display->panels['contentheader'] = array( | |
0 => 'new-a617e554-6ad7-4d25-9d89-627d130d8be3', | |
1 => 'new-d3a2a9fb-f88a-4730-bfab-c36f4e0af395', | |
2 => 'new-faf0ad46-b575-4f96-874d-9a4548cc8da3', | |
); | |
// I assumed it would be okay to reorder these elements due to the fact that the actual content has a position set. | |
// But this is not the case. | |
$data['user:user:default']->display->content['new-a617e554-6ad7-4d25-9d89-627d130d8be3'] = (object) array( | |
'pid' => 'new-a617e554-6ad7-4d25-9d89-627d130d8be3', | |
'panel' => 'contentheader', | |
'type' => 'views_panes', | |
'subtype' => 'open_atrium_discussions-discussion_user_reply', | |
'shown' => TRUE, | |
'access' => array(), | |
'configuration' => array(), | |
'cache' => array(), | |
'css' => array(), | |
'extras' => array(), | |
'position' => 2, // <----- here | |
'locks' => array(), | |
'uuid' => 'a617e554-6ad7-4d25-9d89-627d130d8be3', | |
); /* WAS: '' */ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment