function sheetnode_token_info in Sheetnode 7.2
Same name and namespace in other branches
- 7 sheetnode.module \sheetnode_token_info()
Implements hook_token_info().
File
- ./
sheetnode.module, line 351 - Module file for the sheetnode module.
Code
function sheetnode_token_info() {
$info['types']['sheet'] = array(
'name' => t('Sheet'),
'description' => t('Tokens related to sheets.'),
'needs-data' => 'sheet',
);
$info['tokens']['sheet']['cell'] = array(
'name' => t('Cell reference'),
'description' => t('A cell reference such as B52, C79, etc.'),
'dynamic' => TRUE,
);
$info['tokens']['node']['sheetnode'] = array(
'name' => t('Sheetnode'),
'description' => t('The sheet of the node.'),
'type' => 'sheet',
);
return $info;
}