Last active
February 18, 2016 09:56
-
-
Save delta-9/65e6c2d2f95c138f6d3c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_token_info_alter(). | |
*/ | |
function cake_token_info_alter(&$data) { | |
// Chained tokens for cake. | |
$data ['tokens']['cake']['author'] = array( | |
'name' => t('The cake author'), | |
'description' => t('User author of the cake'), | |
'type' => 'user', | |
); | |
$data ['tokens']['cake']['recipe'] = array( | |
'name' => t('The cake recipe'), | |
'description' => t('Node recipe of the cake.'), | |
'type' => 'node', | |
); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment