You are here

function token_admin_menu_output_alter in Token 7

Implements hook_admin_menu_output_alter().

File

./token.module, line 138
Enhances the token API in core: adds a browseable UI, missing tokens, etc.

Code

function token_admin_menu_output_alter(&$content) {
  $content['icon']['icon']['flush-cache']['token'] = array(
    '#title' => t('Token registry'),
    '#href' => 'token/flush-cache',
    '#options' => array(
      'query' => drupal_get_destination() + array(
        'token' => drupal_get_token('token/flush-cache'),
      ),
    ),
  );
}