updated core to 7.54
This commit is contained in:
@@ -2050,6 +2050,22 @@ function hook_system_theme_info() {
|
||||
return $themes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return additional theme engines provided by modules.
|
||||
*
|
||||
* This hook is invoked from _system_rebuild_theme_data() and allows modules to
|
||||
* register additional theme engines outside of the regular 'themes/engines'
|
||||
* directories of a Drupal installation.
|
||||
*
|
||||
* @return
|
||||
* An associative array. Each key is the system name of a theme engine and
|
||||
* each value is the corresponding path to the theme engine's .engine file.
|
||||
*/
|
||||
function hook_system_theme_engine_info() {
|
||||
$theme_engines['izumi'] = drupal_get_path('module', 'mymodule') . '/izumi/izumi.engine';
|
||||
return $theme_engines;
|
||||
}
|
||||
|
||||
/**
|
||||
* Alter the information parsed from module and theme .info files
|
||||
*
|
||||
|
@@ -12,8 +12,8 @@ files[] = system.test
|
||||
required = TRUE
|
||||
configure = admin/config/system
|
||||
|
||||
; Information added by Drupal.org packaging script on 2016-12-07
|
||||
version = "7.53"
|
||||
; Information added by Drupal.org packaging script on 2017-02-01
|
||||
version = "7.54"
|
||||
project = "drupal"
|
||||
datestamp = "1481152423"
|
||||
datestamp = "1485986921"
|
||||
|
||||
|
@@ -2521,6 +2521,16 @@ function _system_rebuild_theme_data() {
|
||||
|
||||
// Find theme engines
|
||||
$engines = drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.engine$/', 'themes/engines');
|
||||
// Allow modules to add further theme engines.
|
||||
if ($module_engines = module_invoke_all('system_theme_engine_info')) {
|
||||
foreach ($module_engines as $name => $theme_engine_path) {
|
||||
$engines[$name] = (object) array(
|
||||
'uri' => $theme_engine_path,
|
||||
'filename' => basename($theme_engine_path),
|
||||
'name' => $name,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Set defaults for theme info.
|
||||
$defaults = array(
|
||||
|
@@ -1461,6 +1461,60 @@ class DateTimeFunctionalTest extends DrupalWebTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests date format configuration.
|
||||
*/
|
||||
class DateFormatTestCase extends DrupalWebTestCase {
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Date format',
|
||||
'description' => 'Test date format configuration and defaults.',
|
||||
'group' => 'System',
|
||||
);
|
||||
}
|
||||
|
||||
function setUp() {
|
||||
parent::setUp();
|
||||
|
||||
// Create admin user and log in admin user.
|
||||
$this->admin_user = $this->drupalCreateUser(array('administer site configuration'));
|
||||
$this->drupalLogin($this->admin_user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the default date type formats are consistent.
|
||||
*/
|
||||
function testDefaultDateFormats() {
|
||||
// These are the default format values from format_date().
|
||||
$default_formats = array(
|
||||
'short' => 'm/d/Y - H:i',
|
||||
'medium' => 'D, m/d/Y - H:i',
|
||||
'long' => 'l, F j, Y - H:i',
|
||||
);
|
||||
|
||||
// Clear the date format variables.
|
||||
variable_del('date_format_short');
|
||||
variable_del('date_format_medium');
|
||||
variable_del('date_format_long');
|
||||
|
||||
$this->drupalGet('admin/config/regional/date-time');
|
||||
|
||||
foreach ($default_formats as $format_name => $format_value) {
|
||||
$id = 'edit-date-format-' . $format_name;
|
||||
// Check that the configuration fields match the default format.
|
||||
$this->assertOptionSelected(
|
||||
$id,
|
||||
$format_value,
|
||||
format_string('The @type format type matches the expected format @format.',
|
||||
array(
|
||||
'@type' => $format_name,
|
||||
'@format' => $format_value,
|
||||
)
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class PageTitleFiltering extends DrupalWebTestCase {
|
||||
protected $content_user;
|
||||
protected $saved_title;
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2016-12-07
|
||||
version = "7.53"
|
||||
; Information added by Drupal.org packaging script on 2017-02-01
|
||||
version = "7.54"
|
||||
project = "drupal"
|
||||
datestamp = "1481152423"
|
||||
datestamp = "1485986921"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ version = VERSION
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2016-12-07
|
||||
version = "7.53"
|
||||
; Information added by Drupal.org packaging script on 2017-02-01
|
||||
version = "7.54"
|
||||
project = "drupal"
|
||||
datestamp = "1481152423"
|
||||
datestamp = "1485986921"
|
||||
|
||||
|
Reference in New Issue
Block a user