bat-8.x-1.x-dev/modules/bat_event/bat_event.api.php

modules/bat_event/bat_event.api.php
<?php

/**
 * @file
 * Alter.
 *
 * This file contains no working PHP code; it exists to provide additional
 * documentation for doxygen as well as to document hooks in the standard
 * Drupal manner.
 */

/**
 * Allow modules to alter results from faceted search.
 */
function hook_bat_facets_search_results_alter(&$units, $context) {
  unset($units[0]);
}

/**
 * Types.
 *
 * Allow modules to define entity types that may be referenced by Bat Events
 * and provided to the BAT library as a Unit.
 *
 * NB: Entity types returned by this hook must implement the following methods:
 *   * getEventDefaultValue
 *   * formatEventValue.
 *
 * @return array
 *   Single-dimensional array with machine names of entity types.
 */
function hook_bat_event_target_entity_types() {
  return ['bat_unit'];
}

/**
 * Allow modules to define event constraints.
 */
function hook_bat_event_constraints_info() {
  // No example.
}

/**
 * Allow modules to alter defined event constraints.
 */
function hook_bat_event_constraints_info_alter($constraints_info) {
  // No example.
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc