function copyright_block_token_info in Copyright Block module 7.2
Same name and namespace in other branches
- 8 copyright_block.module \copyright_block_token_info()
Implements hook_token_values().
File
- ./copyright_block.module, line 127 
- Creates a dynamic copyright information block.
Code
function copyright_block_token_info() {
  $types['copyright_statement'] = array(
    'name' => t('Copyright statement'),
    'description' => t('Tokens for the copyright statement block'),
  );
  $copyright_statement['dates'] = array(
    'name' => t('Dates'),
    'description' => t('The start and end dates for the copyright statement.'),
  );
  return array(
    'types' => $types,
    'tokens' => array(
      'copyright_statement' => $copyright_statement,
    ),
  );
}