menu.inc

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

Версия 1.146.2.2 (checked in on 2008/02/11 at 05:26:53 by drumm)

API for the Drupal menu system.

Константы

ИмяОписание
MENU_ACCESS_DENIED
MENU_CALLBACKПросто регистрирует функцию по заданному URL-у. Они не показываются в меню.
MENU_CREATED_BY_ADMIN
MENU_CUSTOM_ITEMCustom items are those defined by the administrator. Reserved for internal use; do not return from hook_menu() implementations.
MENU_CUSTOM_MENUCustom menus are those defined by the administrator. Reserved for internal use; do not return from hook_menu() implementations.
MENU_DEFAULT_LOCAL_TASKКаждый набор локальных задач предоставляет одну задачу по умолчанию ('default'), которая указывает на тот же путь, что и родитель, при щелчке мышью.
MENU_DYNAMIC_ITEMDynamic menu items change frequently, and so should not be stored in the database for administrative customization.
MENU_EXPANDED
MENU_FOUND
MENU_IS_LOCAL_TASK
MENU_IS_ROOT
MENU_ITEM_GROUPINGItem groupings are used for pages like 'node/add' that simply list subpages to visit. They are distinguished from other pages in that they will disappear from the menu if no subpages exist.
MENU_LINKS_TO_PARENT
MENU_LOCAL_TASKЛокальные задачи показываются как вкладки по умолчанию. Используйте это для пунктов меню, которые описывают действия, который выполняются над родительским пунктом. Например, путь 'node/52/edit', который выполняет задачу редактирования ('edit') над 'node/52'.
MENU_MODIFIABLE_BY_ADMIN
MENU_MODIFIED_BY_ADMIN
MENU_NORMAL_ITEMОбычные пункты меню, которые показываются в дереве меню и могут быть перемещены/скрыты администратором. Используйте для большинства пунктов меню. Это значение по умолчанию, если тип пункта меню не указан.
MENU_NOT_FOUND
MENU_SITE_OFFLINE
MENU_SUGGESTED_ITEMМодули могут «предлагать» (suggest) элементы меню. По умолчанию такие элементы отключены, и действуют как простые коллбеки, до тех пор, пока администратор не включит их. При включении они становятся обычными пунктами меню.
MENU_VISIBLE_IF_HAS_CHILDREN
MENU_VISIBLE_IN_BREADCRUMB
MENU_VISIBLE_IN_TREE

Функции

ИмяОписание
menu_execute_active_handlerЗапускает обработчик связанный с активизированным пунктом меню.
menu_get_active_breadcrumbПолучает хлебные крошки для текущей страницы, определенные активным путем.
menu_get_active_helpВозвращает справку связанную с активизированным пунктом меню.
menu_get_active_itemВозвращает ID активного пункта меню.
menu_get_active_nontask_itemВозвращает ID текущего пункта меню или, если текущий пункт является локальной задачей, то ID пункта меню к которому эта задача прикреплена.
menu_get_active_titleВозвращает заголовок активного пункта меню.
menu_get_itemВозвращает пункт меню по заданному $mid, или по $path, если $mid не предоставляется.
menu_get_local_tasksReturn the local task tree.
menu_get_menuReturn the menu data structure.
menu_get_root_menusRetrieves the menu ID and title of all root menus.
menu_in_active_trailReturns TRUE when the menu item is in the active trail.
menu_in_active_trail_in_submenuReturns TRUE when the menu item is in the active trail within a specific subsection of the menu tree.
menu_item_linkReturns the rendered link to a menu item.
menu_primary_linksReturns an array containing the primary links. Can optionally descend from the root of the Primary links menu towards the current node for a specified number of levels and return that submenu. Used to generate a primary/secondary menu from different...
menu_primary_local_tasksВозращает оформленные локальные задачи для самого верхнего уровня.
menu_rebuildЗаполняет данные, относящееся к меню в базе данных.
menu_secondary_linksReturns an array containing the secondary links. Secondary links can be either a second level of the Primary links menu or generated from their own menu.
menu_secondary_local_tasksВозращает оформление HTML вторичных локальных задач.
menu_set_active_itemЗадает путь активного пункта меню.
menu_set_locationChange the current menu location of the user.
menu_treeВозвращает отрендеренное дерево меню.
theme_menu_itemGenerate the HTML output for a single menu item.
theme_menu_item_linkГенерирует HTML, представляющий заданный ID пункта меню.
theme_menu_linksReturns the themed HTML for primary and secondary links. Note that this function is overridden by most core themes because those themes display links in 'link | link' format, not from a list. Also note that by default links rendered with...
theme_menu_local_taskGenerate the HTML representing a given menu item ID as a tab.
theme_menu_local_tasksReturns the rendered local tasks. The default implementation renders them as tabs.
theme_menu_treeГенерирует HTML-код, выводимый для дерева меню.
_menu_append_contextual_itemsAccount for menu items that are only defined at certain paths, so will not be cached.
_menu_buildBuild the menu by querying both modules and the database.
_menu_build_local_tasksFind all the items in the current local task tree.
_menu_build_visible_treeFind all visible items in the menu tree, for ease in displaying to user.
_menu_find_parentsEstablish parent-child relationships.
_menu_get_active_trailReturns an array with the menu items that lead to the current menu item.
_menu_get_active_trail_in_submenuFind the active trail through a specific subsection of the menu tree.
_menu_item_is_accessibleDetermine whether the given menu item is accessible to the current user.
_menu_site_is_offlineВозвращает TRUE, если сайт находится в автономном режиме "на обслуживании".
_menu_sortComparator routine for use in sorting menu items.
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему