function _features_install_menu in Features 6
Same name and namespace in other branches
- 7.2 features.install \_features_install_menu()
- 7 features.install \_features_install_menu()
Create menu. See menu.install for an example.
1 call to _features_install_menu()
- features_install in ./
features.install - Implementaton of hook_install().
File
- ./
features.install, line 25
Code
function _features_install_menu() {
if (db_table_exists('menu_custom') && !db_result(db_query("SELECT menu_name FROM {menu_custom} WHERE menu_name = 'features'"))) {
$t = get_t();
db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", 'features', $t('Features'), $t('Menu items for any enabled features.'));
}
}