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
@@ -27,9 +27,18 @@ function theme_test_system_theme_info() {
$themes['test_theme'] = drupal_get_path('module', 'theme_test') . '/themes/test_theme/test_theme.info';
$themes['test_basetheme'] = drupal_get_path('module', 'theme_test') . '/themes/test_basetheme/test_basetheme.info';
$themes['test_subtheme'] = drupal_get_path('module', 'theme_test') . '/themes/test_subtheme/test_subtheme.info';
$themes['test_theme_nyan_cat'] = drupal_get_path('module', 'theme_test') . '/themes/test_theme_nyan_cat/test_theme_nyan_cat.info';
return $themes;
}
/**
* Implements hook_system_theme_engine_info().
*/
function theme_test_system_theme_engine_info() {
$theme_engines['nyan_cat'] = drupal_get_path('module', 'theme_test') . '/themes/engines/nyan_cat/nyan_cat.engine';
return $theme_engines;
}
/**
* Implements hook_menu().
*/
@@ -53,6 +62,17 @@ function theme_test_menu() {
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['theme-test/drupal-add-region-content'] = array(
'page callback' => '_theme_test_drupal_add_region_content',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['theme-test/engine-info-test'] = array(
'description' => "Serves a simple page rendered using a Nyan Cat theme engine template.",
'page callback' => '_theme_test_engine_info_test',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}
@@ -126,6 +146,23 @@ function _theme_test_suggestion() {
return theme(array('theme_test__suggestion', 'theme_test'), array());
}
/**
* Page callback, calls drupal_add_region_content.
*/
function _theme_test_drupal_add_region_content() {
drupal_add_region_content('content', 'World');
return 'Hello';
}
/**
* Serves a simple page renderered using a Nyan Cat theme engine template.
*/
function _theme_test_engine_info_test() {
return array(
'#markup' => theme('theme_test_template_test'),
);
}
/**
* Theme function for testing theme('theme_test_foo').
*/