You are here

party_hat.api.php in Party 8.2

Same filename and directory in other branches
  1. 7 modules/party_hat/party_hat.api.php

Hooks provided by the Party Hats module.

File

modules/party_hat/party_hat.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the Party Hats module.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Act on a Party when some Hats are assigned.
 *
 * @param $party
 *   The party the hats have been assigned to
 * @param $hats
 *   The hats that have been assigned to the party. An array of hat objects
 *   keyed by hat name
 *
 * @see party_hat_hats_assign()
 */
function hook_party_hat_assign_hats($party, $hats) {
}

/**
 * Act on a Party when some Hats are unassigned.
 *
 * @param $party
 *   The party the hats have been unassigned from
 * @param $hats
 *   The hats that have been unassigned from the party. An array of hat objects
 *   keyed by hat name
 *
 * @see party_hat_hats_unassign()
 */
function hook_party_hat_unassign_hats($party, $hats) {
}

/**
 * @}
 */

Functions

Namesort descending Description
hook_party_hat_assign_hats Act on a Party when some Hats are assigned.
hook_party_hat_unassign_hats Act on a Party when some Hats are unassigned.