function bat_booking_token_info in Booking and Availability Management Tools for Drupal 7
Implements hook_token_info().
File
- modules/
bat_booking/ bat_booking.tokens.inc, line 11 - Builds placeholder replacement tokens for booking-related data.
Code
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(),
),
);
}