bat_booking.tokens.inc in Booking and Availability Management Tools for Drupal 7
Builds placeholder replacement tokens for booking-related data.
File
modules/bat_booking/bat_booking.tokens.incView source
<?php
/**
* @file
* Builds placeholder replacement tokens for booking-related data.
*/
/**
* Implements hook_token_info().
*/
function bat_booking_token_info() {
$type = array(
'name' => t('BAT Booking', array(), array(
'context' => 'a bat booking',
)),
'description' => t('Tokens related to bat booking.'),
'needs-data' => 'bat-booking',
);
return array(
'types' => array(
'bat_booking' => $type,
),
'tokens' => array(
'bat_booking' => array(),
),
);
}
Functions
Name | Description |
---|---|
bat_booking_token_info | Implements hook_token_info(). |