updated core to 7.54

This commit is contained in:
Bachir Soussi Chiadmi
2017-05-24 19:27:14 +02:00
parent 9acef9d37e
commit 728f8e6d31
163 changed files with 1022 additions and 513 deletions

View File

@@ -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().
*/
@@ -58,6 +67,12 @@ function theme_test_menu() {
'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;
}
@@ -139,6 +154,15 @@ function _theme_test_drupal_add_region_content() {
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').
*/