function admin_install in Admin 6.2
Same name and namespace in other branches
- 6 admin.install \admin_install()
Implementation of hook_install().
File
- ./
admin.install, line 6
Code
function admin_install() {
if (db_table_exists('menu_custom') && !db_result(db_query("SELECT menu_name FROM {menu_custom} WHERE menu_name = 'admin'"))) {
$t = get_t();
db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'admin', $t('Admin'), $t('Administrative links.'));
}
}