module_invoke
- Versions
- 4.6 – 7
module_invoke()
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.
Related topics
- Hooks
- Allow modules to interact with the Drupal core.
▾ 50 functions call module_invoke()
- block_admin_configure in modules/block.module
- Menu callback; displays the block configuration form.
- block_list in modules/block.module
- Return all blocks in the specied region for the current user. You may
- block_user in modules/block.module
- Implementation of hook_user().
- blogapi_blogger_edit_post in modules/blogapi.module
- Blogging API callback. Modifies the specified blog node.
- blogapi_metaweblog_get_category_list in modules/blogapi.module
- Blogging API callback. Returns a list of the taxonomy terms that can be associated with a blog node.
- blogapi_mt_get_post_categories in modules/blogapi.module
- Blogging API callback. Returns a list of the taxonomy terms that are assigned to a particular node.
- blogapi_mt_set_post_categories in modules/blogapi.module
- Blogging API callback. Assigns taxonomy terms to a particular node.
- blogap_mti_publish_post in modules/blogapi.module
- Blogging API callback. Publishes the given node
- bootstrap_invoke_all in includes/bootstrap.inc
- Call all init or exit hooks without including all modules.
- check_output in modules/filter.module
- Run all the enabled filters on a piece of text.
- file_download in includes/file.inc
- Call modules to find out if a file is accessible for a given user.
- filter_admin_configure in modules/filter.module
- Menu callback; display settings defined by filters.
- filter_admin_filters in modules/filter.module
- Menu callback; configure the filters for a format.
- filter_admin_filters_save in modules/filter.module
- Save enabled/disabled status for filters in a format.
- filter_list_all in modules/filter.module
- Build a list of all filters.
- filter_list_format in modules/filter.module
- Retrieve a list of filters for a certain format.
- form_textarea in includes/common.inc
- Format a multiple-line text field.
- help_links_as_list in modules/help.module
- help_page in modules/help.module
- Menu callback; prints a page listing general help for all modules.
- legacy_blog_feed in modules/legacy.module
- Menu callback; redirects users to new blog feed paths.
- menu_get_active_help in includes/menu.inc
- Returns the help associated with the active menu item.
- node_access in modules/node.module
- Determine whether the current user may perform the given operation on the specified node.
- node_admin_nodes in modules/node.module
- Generate the content administration overview.
- node_list in modules/node.module
- Get a list of all the defined node types.
- queue_view in modules/queue.module
- Display a queued node along with voting options for it.
- queue_vote in modules/queue.module
- search_admin in modules/search.module
- Menu callback; displays the search module settings page.
- search_cron in modules/search.module
- Implementation of hook_cron().
- search_data in modules/search.module
- Perform a standard search on the given keys, and return the formatted results.
- search_menu in modules/search.module
- Implementation of hook_menu().
- search_preprocess in modules/search.module
- Invokes hook_search_preprocess() in modules.
- search_view in modules/search.module
- Menu callback; presents the search form and/or search results.
- statistics_exit in modules/statistics.module
- Implementation of hook_exit().
- system_module_listing in modules/system.module
- Generate a list of all the available modules, as well as update the system list.
- system_site_settings in modules/system.module
- Menu callback; displays a module's settings page.
- system_theme_settings in modules/system.module
- Menu callback; display theme configuration for entire site and individual themes.
- theme_blocks in includes/theme.inc
- Return a set of blocks available for the current user.
- theme_search_item in modules/search.module
- Format a single result entry of a search query.
- throttle_exit in modules/throttle.module
- Implementation of hook_exit().
- user_admin_perm in modules/user.module
- Menu callback: administer permissions.
- user_authenticate in modules/user.module
- user_auth_help_links in modules/user.module
- user_help in modules/user.module
- Implementation of hook_help().
- user_validate_authmap in modules/user.module
- user_view in modules/user.module
- _block_rehash in modules/block.module
- Update the 'blocks' DB table with the blocks currently exported by modules.
- _db_rewrite_sql in includes/database.inc
- Helper function for db_rewrite_sql.
- _filter_tips in modules/filter.module
- Helper function for fetching filter tips.
- _user_categories in modules/user.module
- Retrieve a list of all user setting/information categories and sort them by weight.
- _user_forms in modules/user.module
- Retrieve a list of all form elements for the specified category.
Code
includes/module.inc, line 175
<?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);
}
}
?>Login or register to post comments 