function system_date_time_lookup
Same name and namespace in other branches
- 6.x drupal-6.x/modules/system/system.admin.inc \system_date_time_lookup()
Return the date for a given format string via Ajax.
3 string references to 'system_date_time_lookup'
- drupal-6.bare.database.php in drupal-7.x/
modules/ simpletest/ tests/ upgrade/ drupal-6.bare.database.php - Bare installation of Drupal 6.17, for test purposes.
- drupal-6.filled.database.php in drupal-7.x/
modules/ simpletest/ tests/ upgrade/ drupal-6.filled.database.php - Filled installation of Drupal 6.17, for test purposes.
- system_menu in drupal-7.x/
modules/ system/ system.module - Implements hook_menu().
Archivo
- drupal-7.x/
modules/ system/ system.admin.inc, line 2189 - Admin page callbacks for the system module.
Código
function system_date_time_lookup() {
$result = format_date(REQUEST_TIME, 'custom', $_GET['format']);
drupal_json_output($result);
}