updated core to 7.73

This commit is contained in:
2020-09-24 17:04:08 +02:00
parent 084d28842a
commit 7d87153100
524 changed files with 25194 additions and 7745 deletions
@@ -0,0 +1,53 @@
<?php
/**
* @file
* Handles integration of Nyan cat templates because we love kittens.
*/
/**
* Includes .theme file from themes.
*/
function nyan_cat_init($template) {
$file = dirname($template->filename) . '/template.theme';
if (file_exists($file)) {
include_once DRUPAL_ROOT . '/' . $file;
}
}
/**
* Implements hook_theme().
*/
function nyan_cat_theme($existing, $type, $theme, $path) {
$templates = drupal_find_theme_functions($existing, array($theme));
$templates += drupal_find_theme_templates($existing, '.nyan-cat.html', $path);
return $templates;
}
/**
* Implements hook_extension().
*/
function nyan_cat_extension() {
return '.nyan-cat.html';
}
/**
* Implements hook_render_template().
*
* @param string $template_file
* The filename of the template to render.
* @param mixed[] $variables
* A keyed array of variables that will appear in the output.
*
* @return string
* The output generated by the template.
*/
function nyan_cat_render_template($template_file, $variables) {
$output = str_replace('div', 'nyancat', file_get_contents(DRUPAL_ROOT . '/' . $template_file));
foreach ($variables as $key => $variable) {
if (strpos($output, '9' . $key) !== FALSE) {
$output = str_replace('9' . $key, $variable, $output);
}
}
return $output;
}
@@ -6,8 +6,7 @@ hidden = TRUE
settings[basetheme_only] = base theme value
settings[subtheme_override] = base theme value
; Information added by drupal.org packaging script on 2013-04-03
version = "7.22"
; Information added by Drupal.org packaging script on 2020-09-16
version = "7.73"
project = "drupal"
datestamp = "1365027012"
datestamp = "1600272641"
@@ -6,8 +6,7 @@ hidden = TRUE
settings[subtheme_override] = subtheme value
; Information added by drupal.org packaging script on 2013-04-03
version = "7.22"
; Information added by Drupal.org packaging script on 2020-09-16
version = "7.73"
project = "drupal"
datestamp = "1365027012"
datestamp = "1600272641"
@@ -0,0 +1,2 @@
<!-- Output for Theme Debug Markup test -->
Node Content Dummy
@@ -17,8 +17,7 @@ stylesheets[all][] = system.base.css
settings[theme_test_setting] = default value
; Information added by drupal.org packaging script on 2013-04-03
version = "7.22"
; Information added by Drupal.org packaging script on 2020-09-16
version = "7.73"
project = "drupal"
datestamp = "1365027012"
datestamp = "1600272641"
@@ -0,0 +1,32 @@
<?php
/**
* @file
* Theme setting callbacks for the test_theme theme.
*/
/**
* Implements hook_form_FORM_ID_alter().
*/
function test_theme_form_system_theme_settings_alter(&$form, &$form_state) {
$form['test_theme_checkbox'] = array(
'#type' => 'checkbox',
'#title' => 'Test theme checkbox',
'#default_value' => theme_get_setting('test_theme_checkbox'),
);
// Force the form to be cached so we can test that this file is properly
// loaded and the custom submit handler is properly called even on a cached
// form build.
$form_state['cache'] = TRUE;
$form['#submit'][] = 'test_theme_form_system_theme_settings_submit';
}
/**
* Form submission handler for the test theme settings form.
*
* @see test_theme_form_system_theme_settings_alter()
*/
function test_theme_form_system_theme_settings_submit($form, &$form_state) {
drupal_set_message('The test theme setting was saved.');
}
@@ -0,0 +1,10 @@
name = Nyan cat engine based test theme
description = Theme for testing the module-provided theme engines.
core = 7.x
hidden = TRUE
engine = nyan_cat
; Information added by Drupal.org packaging script on 2020-09-16
version = "7.73"
project = "drupal"
datestamp = "1600272641"