function _acquia_lift_profiles_get_menu_link in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 acquia_lift_profiles/acquia_lift_profiles.install \_acquia_lift_profiles_get_menu_link()
Retrieves the row corresponding to the menu link item for the web admin.
5 calls to _acquia_lift_profiles_get_menu_link()
- acquia_lift_profiles_disable in acquia_lift_profiles/
acquia_lift_profiles.install - Implements hook_disable().
- acquia_lift_profiles_enable in acquia_lift_profiles/
acquia_lift_profiles.install - Implements hook_enable().
- acquia_lift_profiles_menu_link_insert in acquia_lift_profiles/
acquia_lift_profiles.module - Implements hook_menu_link_insert().
- acquia_lift_profiles_update_7001 in acquia_lift_profiles/
acquia_lift_profiles.install - Allow Acquia Lift Web Admin link to be altered.
- acquia_lift_profiles_update_7004 in acquia_lift_profiles/
acquia_lift_profiles.install - Update the styling for the web administration link.
File
- acquia_lift_profiles/
acquia_lift_profiles.install, line 81 - Acquia Lift Profiles - Installation file.
Code
function _acquia_lift_profiles_get_menu_link() {
$item = db_select('menu_links', 'ml')
->fields('ml')
->condition('module', 'menu')
->condition('menu_name', 'acquia-lift-controls')
->condition('link_path', 'http://lift.acquia.com')
->execute()
->fetchAssoc();
if (!empty($item['options'])) {
$item['options'] = unserialize($item['options']);
}
return $item;
}