You are here

function _admin_menu_install_menu in Administration menu 6.3

Helper function to ensure 'admin_menu' menu.

2 calls to _admin_menu_install_menu()
admin_menu_install in ./admin_menu.install
Implementation of hook_install().
admin_menu_update_6301 in ./admin_menu.install
Add the "admin_menu" menu.

File

./admin_menu.install, line 60
Install, update, and uninstall functions for the admin menu module.

Code

function _admin_menu_install_menu() {
  if (db_result(db_query("SELECT menu_name FROM {menu_custom} WHERE menu_name = 'admin_menu'"))) {
    return array(
      'success' => TRUE,
      'query' => 'Menu for Administration menu already exists.',
    );
  }
  return update_sql("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('admin_menu', 'Administration menu', '')");
}