module_invoke

  1. drupal
    1. 5
    2. 8
    3. 6
    4. 7
Versions
5 module_invoke()
7 – 8 module_invoke($module, $hook)
6 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

▾ 54 functions call module_invoke()

block_admin_configure in modules/block/block.module
Menu callback; displays the block configuration form.
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
Implementation of hook_user().
blogapi_metaweblog_get_category_list in modules/blogapi/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/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
Run all the enabled filters on a piece of text.
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
Calls the install function and updates the system table for a given list of modules.
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
Retrieve a list of filters for a certain format.
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 documentation/developer/hooks/core.php
Define a custom search routine.
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
Returns the help associated with the active menu item.
module_disable in includes/module.inc
Disable a given set of modules.
module_enable in includes/module.inc
Enable a given list of modules.
node_access in modules/node/node.module
Determine whether the current user may perform the given operation on the specified node.
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
Implementation of 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
Implementation of 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
For vocabularies not maintained by taxonomy.module, give the maintaining module a chance to provide a path for terms in that vocabulary.
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
Implementation of 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
Helper function for 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.

Code

includes/module.inc, line 379

<?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);
  }
}
?>