FINAL suepr merge step : added all modules to this super repos
This commit is contained in:
13
sites/all/modules/contrib/admin/token/tests/token_test.info
Normal file
13
sites/all/modules/contrib/admin/token/tests/token_test.info
Normal file
@@ -0,0 +1,13 @@
|
||||
name = Token Test
|
||||
description = Testing module for token functionality.
|
||||
package = Testing
|
||||
core = 7.x
|
||||
files[] = token_test.module
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by drupal.org packaging script on 2013-02-24
|
||||
version = "7.x-1.5"
|
||||
core = "7.x"
|
||||
project = "token"
|
||||
datestamp = "1361665026"
|
||||
|
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Helper module for token tests.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_exit().
|
||||
*/
|
||||
function token_test_exit() {
|
||||
if ($debug = variable_get('token_page_tokens', array())) {
|
||||
$debug += array('tokens' => array(), 'data' => array(), 'options' => array());
|
||||
foreach (array_keys($debug['tokens']) as $token) {
|
||||
$debug['values'][$token] = token_replace($token, $debug['data'], $debug['options']);
|
||||
}
|
||||
variable_set('token_page_tokens', $debug);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_date_format_types().
|
||||
*
|
||||
* @todo Remove when http://drupal.org/node/1173706 is fixed.
|
||||
*/
|
||||
function token_test_date_format_types() {
|
||||
$info['token_test'] = t('Token test date format');
|
||||
|
||||
// Explicitly set the variable here as well.
|
||||
variable_set('date_format_token_test', 'Y');
|
||||
|
||||
return $info;
|
||||
}
|
Reference in New Issue
Block a user