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

▾ 67 functions call module_invoke()

aggregator_admin_form in modules/aggregator/aggregator.admin.inc
Form builder; Configure the aggregator system.
aggregator_form_aggregator_admin_form_alter in modules/aggregator/aggregator.processor.inc
Implement hook_form_aggregator_admin_form_alter().
aggregator_refresh in modules/aggregator/aggregator.module
Checks a news feed for new items.
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_form_user_profile_form_alter in modules/block/block.module
Implement hook_form_FORM_ID_alter().
bootstrap_invoke_all in includes/bootstrap.inc
Call all init or exit hooks without including all modules.
dashboard_page_build in modules/dashboard/dashboard.module
Implement hook_page_build().
drupal_check_module in includes/install.inc
Check a module's requirements.
drupal_get_library in includes/common.inc
Retrieves information for a JavaScript/CSS library.
drupal_get_schema in includes/bootstrap.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_modules in includes/install.inc
Calls the uninstall function and updates the system table for a given module.
field_associate_fields in modules/field/field.module
Allows a module to update the database for fields and columns it controls.
field_attach_delete in modules/field/field.attach.inc
Delete field data for an existing object. This deletes all revisions of field data for the object.
field_attach_delete_revision in modules/field/field.attach.inc
Delete field data for a single revision of an existing object. The passed object must have a revision id attribute.
field_attach_insert in modules/field/field.attach.inc
Save field data for a new object.
field_attach_load in modules/field/field.attach.inc
Load all fields for the most current version of each of a set of objects of a single object type.
field_attach_update in modules/field/field.attach.inc
Save field data for an existing object.
field_create_field in modules/field/field.crud.inc
Create a field.
field_delete_field in modules/field/field.crud.inc
Mark a field for deletion, including all its instances and all data associated with it.
field_delete_instance in modules/field/field.crud.inc
Mark a field instance for deletion, including all data associated with it.
field_purge_data in modules/field/field.crud.inc
Purge the field data for a single field on a single pseudo-object.
field_purge_field in modules/field/field.crud.inc
Purge a field record from the database.
field_purge_instance in modules/field/field.crud.inc
Purge a field instance record from the database.
field_read_fields in modules/field/field.crud.inc
Read in fields that match an array of conditions.
field_ui_field_edit_form in modules/field_ui/field_ui.admin.inc
Menu callback; presents the field instance edit page.
field_ui_field_settings_form in modules/field_ui/field_ui.admin.inc
Menu callback; presents the field settings edit page.
filter_get_filters in modules/filter/filter.module
Return a list of all filters provided by modules.
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_execute in modules/search/search.api.php
Execute a search for a set of key words.
image_effect_definitions in modules/image/image.module
Pull in image effects exposed by modules implementing hook_image_effect_info().
image_styles in modules/image/image.module
Get an array of all styles and their settings.
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_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_search_form_alter in modules/node/node.module
Implement hook_form_FORM_ID_alter().
node_search_execute in modules/node/node.module
Implement hook_search_execute().
path_admin_overview in modules/path/path.admin.inc
Return a listing of all defined 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
Implement 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.
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 in modules/system/system.admin.inc
Menu callback; provides module enable/disable interface.
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.
update_check_requirements in ./update.php
Check update requirements and report any errors.
update_get_update_list in includes/update.inc
Return a list of all the pending database updates.
user_admin_permissions in modules/user/user.admin.inc
Menu callback: administer permissions.
user_modules_installed in modules/user/user.module
Implementation of hook_modules_installed().
user_modules_uninstalled in modules/user/user.module
Implement hook_modules_uninstalled().
watchdog in includes/bootstrap.inc
Log a system message.
watchdog_skip_semaphore in modules/simpletest/tests/actions_loop_test.module
Replacement of the watchdog() function that eliminates the use of semaphores so that we can test the abortion of an action loop.
_block_rehash in modules/block/block.module
Update the 'block' DB table with the blocks currently exported by modules.
_block_render_blocks in modules/block/block.module
Render the content and subject for a set of blocks.
_drupal_install_module in includes/install.inc
Callback to install an individual install profile module.
_field_info_collate_fields in modules/field/field.info.inc
Collate all information on existing fields and instances.
_field_info_collate_types in modules/field/field.info.inc
Collate all information on field types, widget types and related structures.
_rdf_get_default_mapping in modules/rdf/rdf.module
Returns the default RDF mapping for a given entity type.
_search_menu_access in modules/search/search.module
Access callback for search tabs.
_system_date_format_types_build in modules/system/system.module
Builds and returns the list of available date types.

Code

includes/module.inc, line 576

<?php
function module_invoke() {
  $args = func_get_args();
  $module = $args[0];
  $hook = $args[1];
  unset($args[0], $args[1]);
  if (module_hook($module, $hook)) {
    return call_user_func_array($module . '_' . $hook, $args);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.