module_invoke_all

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 module_invoke_all()

Invoke a hook in all enabled modules that implement it.

Übergabeparameter

$hook The name of the hook to invoke.

... Arguments to pass to the hook.

Rückgabewert

An array of return values of the hook implementations. If modules return arrays from their implementations, those are merged into one array.

Verwandte Themen

▾ 81 functions call module_invoke_all()

actions_delete in includes/actions.inc
Delete a single action from the database.
actions_list in includes/actions.inc
Discover all action functions by invoking hook_action_info().
aggregator_remove in modules/aggregator/aggregator.module
Removes all items from a feed.
blogapi_blogger_edit_post in modules/blogapi/blogapi.module
Blogging API callback. Modifies the specified blog node.
blogapi_blogger_new_post in modules/blogapi/blogapi.module
Blogging API callback. Inserts a new blog post as a node.
checkPermissions in modules/simpletest/drupal_web_test_case.php
Check to make sure that the array of permissions are valid.
comment_render in modules/comment/comment.module
Renders comment(s).
drupal_cron_run in includes/common.inc
Executes a cron run when called
drupal_flush_all_caches in includes/common.inc
Flush all cached data on the site.
drupal_get_rdf_namespaces in includes/common.inc
Return a string containing RDF namespaces for the <html> tag of an XHTML page.
drupal_goto in includes/common.inc
Send the user to a different Drupal page.
drupal_install_modules in includes/install.inc
Calls the install function for a given list of modules.
drupal_page_footer in includes/common.inc
Perform end-of-request tasks.
drupal_retrieve_form in includes/form.inc
Retrieves the structured array that defines a given form.
drupal_uninstall_modules in includes/install.inc
Calls the uninstall function and updates the system table for a given module.
field_access in modules/field/field.module
Determine whether the user has access to a given field.
field_create_instance in modules/field/field.crud.inc
Creates an instance of a field, binding it to a bundle.
field_read_fields in modules/field/field.crud.inc
Read in fields that match an array of conditions.
field_read_instances in modules/field/field.crud.inc
Read in field instances that match an array of conditions.
file_copy in includes/file.inc
Copy a file to a new location and adds a file record to the database.
file_delete in includes/file.inc
Delete a file and its database record.
file_download in includes/file.inc
Menu handler for private file transfers.
file_move in includes/file.inc
Move a file to a new location and update the file's database entry.
file_save in includes/file.inc
Save a file object to the database.
file_validate in includes/file.inc
Check that a file meets the criteria specified by the validators.
hook_search in modules/search/search.api.php
Define a custom search routine.
hook_update_index in modules/search/search.api.php
Update Drupal's full-text index for this module.
image_get_available_toolkits in includes/image.inc
Return a list of available toolkits.
locale_translate_export_pot_form in includes/locale.inc
Translation template export form.
locale_translate_export_po_form in includes/locale.inc
Form to export PO files for the languages provided.
locale_translate_import_form in includes/locale.inc
User interface for the translation import screen.
locale_translate_overview_screen in includes/locale.inc
Overview screen for translations.
locale_translation_filters in includes/locale.inc
List locale translation filters that can be applied.
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_acquire_grants in modules/node/node.module
This function will call module invoke to get a list of grants and then write them to the database. It is called at node save, and should be called by modules whenever something other than a node_save causes the permissions on a node to change.
node_access_grants in modules/node/node.module
Fetch an array of permission IDs granted to the given user ID.
node_admin_nodes in modules/node/node.admin.inc
Form builder: Builds the node administration overview.
node_admin_nodes_submit in modules/node/node.admin.inc
Process node_admin_nodes form submissions.
node_build_content in modules/node/node.module
Builds a structured array representing the node's content.
node_delete_multiple in modules/node/node.module
Delete multiple nodes.
node_object_prepare in modules/node/node.pages.inc
node_revision_delete_confirm_submit in modules/node/node.pages.inc
node_save in modules/node/node.module
Save changes to a node or add a new node.
node_search in modules/node/node.module
Implementation of hook_search().
node_type_delete in modules/node/node.module
Deletes a node type from the database.
node_type_reset in modules/node/content_types.inc
Resets all of the relevant fields of a module-defined node type to their default values.
node_type_save in modules/node/node.module
Saves a node type to the database.
node_validate in modules/node/node.module
Perform validation checks on the given node.
openid_authentication_request in modules/openid/openid.module
poll_view in modules/poll/poll.module
Implementation of hook_view().
SearchRankingTestCase::testRankings in modules/search/search.test
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_wipe in modules/search/search.module
Wipes a part of or the entire search index.
simpletest_run_tests in modules/simpletest/simpletest.module
Actually runs tests.
system_cron in modules/system/system.module
Implementation of hook_cron().
system_status in modules/system/system.admin.inc
Menu callback: displays the site status report. Can also be used as a pure check.
taxonomy_term_delete in modules/taxonomy/taxonomy.module
Delete a term.
taxonomy_term_save in modules/taxonomy/taxonomy.module
Save a term object to the database.
taxonomy_vocabulary_delete in modules/taxonomy/taxonomy.module
Delete a vocabulary.
taxonomy_vocabulary_save in modules/taxonomy/taxonomy.module
Save a vocabulary given a vocabulary object.
theme_closure in includes/theme.inc
Execute hook_footer() which is run at the end of the page right before the close of the body tag.
theme_comment_flat_expanded in modules/comment/comment.module
Theme comment flat expanded view.
theme_comment_thread_expanded in modules/comment/comment.module
Theme comment thread expanded view.
translation_node_prepare in modules/translation/translation.module
Implementation of hook_node_prepare().
trigger_assign in modules/trigger/trigger.admin.inc
Build the form that allows users to assign actions to hooks.
trigger_forms in modules/trigger/trigger.module
Implementation of hook_forms(). We reuse code by using the same assignment form definition for each node-op combination.
trigger_menu in modules/trigger/trigger.module
Implementation of hook_menu().
user_admin_account in modules/user/user.admin.inc
Form builder; User administration page.
user_admin_account_submit in modules/user/user.admin.inc
Submit the user administration update form.
user_cancel in modules/user/user.module
Cancel a user account.
user_logout in modules/user/user.pages.inc
Menu callback; logs the current user out, and redirects to the home page.
_drupal_bootstrap in includes/bootstrap.inc
_drupal_bootstrap_full in includes/common.inc
_locale_translate_seek in includes/locale.inc
Perform a string search and display results in a table
_node_index_node in modules/node/node.module
Index a single node.
_node_rankings in modules/node/node.module
Gather the rankings from the the hook_ranking implementations.
_node_types_build in modules/node/node.module
Builds and returns the list of available node types.
_simpletest_batch_finished in modules/simpletest/simpletest.module
_simpletest_batch_operation in modules/simpletest/simpletest.module
Batch operation callback.

Code

includes/module.inc, line 508

<?php
function module_invoke_all() {
  $args = func_get_args();
  $hook = $args[0];
  unset($args[0]);
  $return = array();
  foreach (module_implements($hook) as $module) {
    $function = $module . '_' . $hook;
    if (drupal_function_exists($function)) {
      $result = call_user_func_array($function, $args);
      if (isset($result) && is_array($result)) {
        $return = array_merge_recursive($return, $result);
      }
      elseif (isset($result)) {
        $return[] = $result;
      }
    }
  }

  return $return;
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen