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.
▾ 54 functions call module_invoke()
- block_admin_configure in modules/block/block.admin.inc
- Menu callback; displays the block configuration form.
- block_admin_configure_submit in modules/block/block.admin.inc
- 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_get_schema in includes/common.inc
- Get the schema definition of a table, or the whole database schema.
- drupal_get_schema_unprocessed in includes/common.inc
- Returns the unprocessed and unaltered version of a module's schema.
- drupal_install_system in includes/install.inc
- Callback to install the system module.
- 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.admin.inc
- Build a form to change the settings for a format's filters.
- filter_admin_format_form in modules/filter/filter.admin.inc
- Generate a filter format form.
- filter_admin_format_form_submit in modules/filter/filter.admin.inc
- 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.admin.inc
- help_page in modules/help/help.admin.inc
- Menu callback; prints a page listing general help for a module.
- hook_search in developer/hooks/core.php
- Define a custom search routine.
- 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.admin.inc
- List node administration filters that can be applied.
- node_filter_form in modules/node/node.admin.inc
- 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().
- path_admin_overview in modules/path/path.admin.inc
- Return a listing of all defined URL aliases. When filter key passed, perform a standard search on the given key, and return the list of matching URL aliases.
- search_admin_settings in modules/search/search.admin.inc
- 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_invoke_preprocess in modules/search/search.module
- Invokes hook_search_preprocess() in modules.
- search_view in modules/search/search.pages.inc
- 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.admin.inc
- Menu callback; prints a listing of admin tasks for each installed module.
- system_get_module_admin_tasks in modules/system/system.module
- Generate a list of tasks offered by a specified module.
- system_modules_submit in modules/system/system.admin.inc
- Submit callback; handles modules form submission.
- system_themes_form_submit in modules/system/system.admin.inc
- Process system_themes_form form submissions.
- system_update_6027 in modules/system/system.install
- Add block cache.
- 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_check_requirements in ./update.php
- Check update requirements and report any errors.
- update_script_selection_form in ./update.php
- user_admin_perm in modules/user/user.admin.inc
- Menu callback: administer permissions.
- user_filters in modules/user/user.module
- List user administration filters that can be applied.
- watchdog in includes/bootstrap.inc
- Log a system message.
- _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.
- _drupal_install_module in includes/install.inc
- Callback to install an individual profile module.
- _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.
- _search_menu in modules/search/search.module
Code
includes/module.inc, line 454
<?php
function module_invoke() {
$args = func_get_args();
$module = $args[0];
$hook = $args[1];
unset($args[0], $args[1]);
$function = $module .'_'. $hook;
if (module_hook($module, $hook)) {
return call_user_func_array($function, $args);
}
}
?>Login or register to post comments 