You are here

function accountmenu_install in Account menu 7

Same name and namespace in other branches
  1. 6 accountmenu.install \accountmenu_install()

Implements hook_install.

File

./accountmenu.install, line 10
accountmenu.install accountmenu module install/uninstall

Code

function accountmenu_install() {
  $t = get_t();
  db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES (:name, :title, :description)", array(
    ':name' => 'accountmenu',
    ':title' => $t('Account menu'),
    ':description' => $t('Account menu links.'),
  ));
  include_once 'accountmenu.module';
  _accountmenu_setup_menu();
  drupal_set_message($t('Account menu is installed, go to <a href="@help">help</a> for instructions.', array(
    '@help' => url('admin/help/accountmenu'),
  )), 'status');
}