function _acquia_lift_profiles_get_menu_link in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 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.
4 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_uninstall in acquia_lift_profiles/
acquia_lift_profiles.install - Implements hook_uninstall().
- acquia_lift_profiles_update_7001 in acquia_lift_profiles/
acquia_lift_profiles.install - Allow Acquia Lift Web Admin link to be altered.
File
- acquia_lift_profiles/
acquia_lift_profiles.install, line 92 - 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;
}