function _quicktabs_unpack in Quick Tabs 6.3
Same name and namespace in other branches
- 7.2 quicktabs.module \_quicktabs_unpack()
Unpack a quicktabs row array from the database.
2 calls to _quicktabs_unpack()
- quicktabs_get_all_quicktabs in ./
quicktabs.module - Load all from defaults and database quicktabs.
- quicktabs_load in ./
quicktabs.module - Load the quicktabs data.
File
- ./
quicktabs.module, line 554
Code
function _quicktabs_unpack($quicktabs) {
$tabs = unserialize($quicktabs['tabs']);
$weight = array();
foreach ($tabs as $key => $tab) {
$weight[$key] = $tab['weight'];
if ($tab['type'] == 'qtabs' && $tab['machine_name'] == $qt_name) {
unset($tabs[$key]);
unset($weight[$key]);
}
}
array_multisort($weight, SORT_ASC, $tabs);
$quicktabs['tabs'] = $tabs;
return $quicktabs;
}