function uc_store_token_info in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_store/uc_store.tokens.inc \uc_store_token_info()
Implements hook_token_info().
File
- uc_store/
uc_store.tokens.inc, line 11 - Token hooks for the uc_store module.
Code
function uc_store_token_info() {
$type = array(
'name' => t('Store information'),
'description' => t('Tokens for store-specific, but globally available, information.'),
);
$site['login-link'] = array(
'name' => t('Login URL'),
'description' => t('A link to the site login page.'),
);
$site['logo'] = array(
'name' => t('Logo'),
'description' => t('The image showing the site logo.'),
);
$store['name'] = array(
'name' => t('Store name'),
'description' => t('The Ubercart store name.'),
);
$store['link'] = array(
'name' => t('Store link'),
'description' => t('A link to the Ubercart store using the store name.'),
);
$store['owner'] = array(
'name' => t('Owner'),
'description' => t('The Ubercart store owner.'),
);
$store['email'] = array(
'name' => t('Email'),
'description' => t('The Ubercart store e-mail address.'),
);
$store['phone'] = array(
'name' => t('Phone number'),
'description' => t('The Ubercart store phone number.'),
);
$store['fax'] = array(
'name' => t('Fax number'),
'description' => t('The Ubercart store fax number.'),
);
$store['address'] = array(
'name' => t('Address'),
'description' => t('The Ubercart store mailing address.'),
);
$store['help-url'] = array(
'name' => t('Help page URL'),
'description' => t('The URL to the store help page.'),
'type' => 'url',
);
return array(
'types' => array(
'store' => $type,
),
'tokens' => array(
'site' => $site,
'store' => $store,
),
);
}