function acquia_lift_update_7001 in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 acquia_lift.install \acquia_lift_update_7001()
Expand the acquia-lift-controls menu items by default.
File
- ./
acquia_lift.install, line 415 - Acquia Lift - Installation file.
Code
function acquia_lift_update_7001() {
$items = db_select('menu_links', 'ml')
->fields('ml')
->condition('module', 'menu')
->condition('menu_name', 'acquia-lift-controls')
->execute()
->fetchAllAssoc('mlid', PDO::FETCH_ASSOC);
if (!empty($items)) {
foreach ($items as $item) {
$item['options'] = unserialize($item['options']);
$item['expanded'] = 1;
menu_link_save($item);
}
}
// Update the menu router information.
menu_rebuild();
}