function beautytips_ui_menu in BeautyTips 7.2
Same name and namespace in other branches
- 8 beautytips_ui/beautytips_ui.module \beautytips_ui_menu()
- 6.2 beautytips_ui.module \beautytips_ui_menu()
Implementation of hook_menu.
File
- ./
beautytips_ui.module, line 39 - Adds includes to Beautytips settings page and provides some built in functionality. TODO: hook_theme invoke - maybe Invoked include hooks: admin_info, menu_change, theme_change, form_change, menu_items ex. beautytips_textinput_info
Code
function beautytips_ui_menu() {
$items = [];
$menu_items = beautytips_ui_include_invoke('beautytips', 'menu_items', $args = []);
if (is_array($menu_items)) {
foreach ($menu_items as $menu_item) {
if (is_array($menu_item)) {
$path = key($menu_item);
$items[$path] = $menu_item[$path];
}
}
}
return $items;
}