module_invoke
Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.
includes/module.inc, строка 379
- Версии
- 5 – 6
module_invoke()
Вызывает хук в указанном модуле.
Параметры
$module
Название модуля (например «book» для book.module).
$hook
Название хука, который нужно вызвать.
... Аргументы в порядке, объявленном в хуке.
Возвращаемое значение
Результат выполнения хука.
Invoke a hook in a particular module.
Parameters
$module The name of the module (without the .module extension).
$hook The name of the hook to invoke.
... Arguments to pass to the hook implementation.
Return value
The return value of the hook implementation.
Связанные темы
- Хуки
- Позволяет модулям взаимодействовать с ядром Drupal.
▾ 54 функции вызывают module_invoke()
- block_admin_configure in modules/block/block.module
- Коллбэк меню. Отображает форму настройки блока.
- block_admin_configure_submit in modules/block/block.module
- block_list in modules/block/block.module
- Return all blocks in the specified region for the current user.
- block_user in modules/block/block.module
- Реализация hook_user().
- blogapi_metaweblog_get_category_list in modules/blogapi/blogapi.module
- Коллбэк Blogging API. Возвращает список терминов таксономии. которые могут быть связаны с данной записью блога.
- blogapi_mt_get_post_categories in modules/blogapi/blogapi.module
- Blogging API callback. Returns a list of the taxonomy terms that are assigned to a particular node.
- bootstrap_invoke_all in includes/bootstrap.inc
- Call all init or exit hooks without including all modules.
- check_markup in modules/filter/filter.module
- Фильтрует текст с помощью выбранного формата ввода.
- drupal_check_module in includes/install.inc
- Check a module's requirements.
- drupal_check_profile in includes/install.inc
- Check a profile's requirements.
- drupal_install_modules in includes/install.inc
- Вызывает функцию установки и обновляет таблицу system для указанного списка модулей.
- drupal_install_profile in includes/install.inc
- Install a profile (i.e. a set of modules) from scratch. The profile must be verified first using drupal_verify_profile().
- drupal_uninstall_module in includes/install.inc
- Calls the uninstall function and updates the system table for a given module.
- filter_admin_configure in modules/filter/filter.module
- Menu callback; display settings defined by filters.
- filter_admin_format_form in modules/filter/filter.module
- Generate a filter format form.
- filter_admin_format_form_submit in modules/filter/filter.module
- Process filter format form submissions.
- filter_list_all in modules/filter/filter.module
- Build a list of all filters.
- filter_list_format in modules/filter/filter.module
- Возвращает список форматов ввода для выбранного формата.
- help_links_as_list in modules/help/help.module
- help_page in modules/help/help.module
- Menu callback; prints a page listing general help for all modules.
- hook_search in developer/hooks/core.php
- Определяет пользовательскую функцию поиска.
- legacy_blog_feed in modules/legacy/legacy.module
- Menu callback; redirects users to new blog feed paths.
- menu_get_active_help in includes/menu.inc
- Возвращает справку связанную с активизированным пунктом меню.
- module_disable in includes/module.inc
- Disable a given set of modules.
- module_enable in includes/module.inc
- Включает данный список модулей.
- node_access in modules/node/node.module
- Устанавливает может ли текущий пользователь выполнять заданные действия на определённом ноде.
- node_filters in modules/node/node.module
- List node administration filters that can be applied.
- node_filter_form in modules/node/node.module
- Return form for node administration filters.
- node_form_alter in modules/node/node.module
- Implementation of hook_form_alter().
- node_search in modules/node/node.module
- Implementation of hook_search().
- search_admin_settings in modules/search/search.module
- Menu callback; displays the search module settings page.
- search_cron in modules/search/search.module
- Реализация hook_cron().
- search_data in modules/search/search.module
- Perform a standard search on the given keys, and return the formatted results.
- search_menu in modules/search/search.module
- Реализация hook_menu().
- search_preprocess in modules/search/search.module
- Invokes hook_search_preprocess() in modules.
- search_view in modules/search/search.module
- Menu callback; presents the search form and/or search results.
- statistics_exit in modules/statistics/statistics.module
- Implementation of hook_exit().
- system_admin_by_module in modules/system/system.module
- Menu callback; prints a listing of admin tasks for each installed module.
- system_get_module_admin_tasks in modules/system/system.module
- system_update_160 in modules/system/system.install
- taxonomy_term_path in modules/taxonomy/taxonomy.module
- update_data in ./update.php
- Perform one update and store the results which will later be displayed on the finished page.
- user_admin_perm in modules/user/user.module
- Menu callback: administer permissions.
- user_authenticate in modules/user/user.module
- user_auth_help_links in modules/user/user.module
- user_filters in modules/user/user.module
- List user administration filters that can be applied.
- user_help in modules/user/user.module
- Реализация hook_help().
- user_view in modules/user/user.module
- _block_rehash in modules/block/block.module
- Update the 'blocks' DB table with the blocks currently exported by modules.
- _db_rewrite_sql in includes/database.inc
- Вспомогательная функция для db_rewrite_sql().
- _element_info in includes/form.inc
- Retrieve the default properties for the defined element type.
- _filter_tips in modules/filter/filter.module
- Helper function for fetching filter tips.
- _user_categories in modules/user/user.module
- Retrieve a list of all user setting/information categories and sort them by weight.
- _user_forms in modules/user/user.module
- Retrieve a list of all form elements for the specified category.
Код
<?php
function module_invoke() {
$args = func_get_args();
$module = array_shift($args);
$hook = array_shift($args);
$function = $module .'_'. $hook;
if (module_hook($module, $hook)) {
return call_user_func_array($function, $args);
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии