Skip to content
Snippets Groups Projects
Select Git revision
  • 503d9dde7d710bcea9e3dab8ea8e3494f7cd06ab
  • 11.x default protected
  • 11.2.x protected
  • 10.6.x protected
  • 10.5.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
41 results

EntityDefinitionUpdateManager.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    system.api.php 120.88 KiB
    <?php
    // $Id$
    
    /**
     * @file
     * Hooks provided by Drupal core and the System module.
     */
    
    /**
     * @addtogroup hooks
     * @{
     */
    
    /**
     * Defines one or more hooks that are exposed by a module.
     *
     * Normally hooks do not need to be explicitly defined. However, by declaring a
     * hook explicitly, a module may define a "group" for it. Modules that implement
     * a hook may then place their implementation in either $module.module or in
     * $module.$group.inc. If the hook is located in $module.$group.inc, then that
     * file will be automatically loaded when needed.
     * In general, hooks that are rarely invoked and/or are very large should be
     * placed in a separate include file, while hooks that are very short or very
     * frequently called should be left in the main module file so that they are
     * always available.
     *
     * @return
     *   An associative array whose keys are hook names and whose values are an
     *   associative array containing:
     *   - group: A string defining the group to which the hook belongs. The module
     *     system will determine whether a file with the name $module.$group.inc
     *     exists, and automatically load it when required.
     *
     * See system_hook_info() for all hook groups defined by Drupal core.
     */
    function hook_hook_info() {
      $hooks['token_info'] = array(
        'group' => 'tokens',
      );
      $hooks['tokens'] = array(
        'group' => 'tokens',
      );
      return $hooks;
    }
    
    /**
     * Inform the base system and the Field API about one or more entity types.
     *
     * Inform the system about one or more entity types (i.e., object types that
     * can be loaded via entity_load() and, optionally, to which fields can be
     * attached).
     *
     * @see entity_load()
     * @see hook_entity_info_alter()
     *
     * @return
     *   An array whose keys are entity type names and whose values identify
     *   properties of those types that the system needs to know about:
     *   - label: The human-readable name of the type.
     *   - controller class: The name of the class that is used to load the objects.
     *     The class has to implement the DrupalEntityControllerInterface interface.
     *     Leave blank to use the DrupalDefaultEntityController implementation.
     *   - base table: (used by DrupalDefaultEntityController) The name of the
     *     entity type's base table.
     *   - static cache: (used by DrupalDefaultEntityController) FALSE to disable
     *     static caching of entities during a page request. Defaults to TRUE.
     *   - load hook: The name of the hook which should be invoked by
     *     DrupalDefaultEntityController:attachLoad(), for example 'node_load'.
     *   - uri callback: A function taking an entity as argument and returning the
     *     uri elements of the entity, e.g. 'path' and 'options'. The actual entity