updated core to 7.54
This commit is contained in:
@@ -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 @@ package = Testing
|
||||
version = VERSION
|
||||
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"
|
||||
|
||||
|
@@ -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 @@ package = Testing
|
||||
version = VERSION
|
||||
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 @@ package = Testing
|
||||
version = VERSION
|
||||
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"
|
||||
|
||||
|
@@ -7,8 +7,8 @@ stylesheets[all][] = common_test.css
|
||||
stylesheets[print][] = common_test.print.css
|
||||
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"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ package = Testing
|
||||
version = VERSION
|
||||
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"
|
||||
|
||||
|
@@ -7,8 +7,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"
|
||||
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
dependencies[] = entity_cache_test_dependency
|
||||
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"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ package = Testing
|
||||
version = VERSION
|
||||
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"
|
||||
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
files[] = file_test.module
|
||||
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"
|
||||
|
||||
|
@@ -690,6 +690,14 @@ class FormValidationTestCase extends DrupalWebTestCase {
|
||||
$this->assertText('The form has become outdated. Copy any unsaved work in the form below');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests that a form with a disabled CSRF token can be validated.
|
||||
*/
|
||||
function testDisabledToken() {
|
||||
$this->drupalPost('form-test/validate-no-token', array(), 'Save');
|
||||
$this->assertText('The form_test_validate_no_token form has been submitted successfully.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests partial form validation through #limit_validation_errors.
|
||||
*/
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -37,6 +37,13 @@ function form_test_menu() {
|
||||
'access callback' => TRUE,
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
$items['form-test/validate-no-token'] = array(
|
||||
'title' => 'Form validation without a CSRF token',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('form_test_validate_no_token'),
|
||||
'access callback' => TRUE,
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
$items['form-test/limit-validation-errors'] = array(
|
||||
'title' => 'Form validation with some error suppression',
|
||||
'page callback' => 'drupal_get_form',
|
||||
@@ -454,6 +461,27 @@ function form_test_validate_required_form_no_title_submit($form, &$form_state) {
|
||||
drupal_set_message('The form_test_validate_required_form_no_title form was submitted successfully.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Form builder for testing submission of a form without a CSRF token.
|
||||
*/
|
||||
function form_test_validate_no_token($form, &$form_state) {
|
||||
$form['submit'] = array(
|
||||
'#type' => 'submit',
|
||||
'#value' => 'Save',
|
||||
);
|
||||
|
||||
$form['#token'] = FALSE;
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Form submission handler for form_test_validate_no_token().
|
||||
*/
|
||||
function form_test_validate_no_token_submit($form, &$form_state) {
|
||||
drupal_set_message('The form_test_validate_no_token form has been submitted successfully.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Builds a simple form with a button triggering partial validation.
|
||||
*/
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -5,8 +5,8 @@ core = 7.x
|
||||
hidden = TRUE
|
||||
package = Testing
|
||||
|
||||
; 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 @@ core = 7.x
|
||||
hidden = TRUE
|
||||
package = Testing
|
||||
|
||||
; 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"
|
||||
|
||||
|
@@ -7,8 +7,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"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
hidden = TRUE
|
||||
dependencies[] = _missing_dependency
|
||||
|
||||
; 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"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
hidden = TRUE
|
||||
dependencies[] = system_incompatible_core_version_test
|
||||
|
||||
; 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 = 5.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"
|
||||
|
||||
|
@@ -7,8 +7,8 @@ hidden = TRUE
|
||||
; system_incompatible_module_version_test declares version 1.0
|
||||
dependencies[] = system_incompatible_module_version_test (>2.0)
|
||||
|
||||
; 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 = 1.0
|
||||
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"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
hidden = TRUE
|
||||
dependencies[] = drupal:filter
|
||||
|
||||
; 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"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
files[] = system_test.module
|
||||
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"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ core = 7.x
|
||||
hidden = TRUE
|
||||
dependencies[] = taxonomy
|
||||
|
||||
; 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"
|
||||
|
||||
|
@@ -646,3 +646,34 @@ class ThemeDebugMarkupTestCase extends DrupalWebTestCase {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests module-provided theme engines.
|
||||
*/
|
||||
class ModuleProvidedThemeEngineTestCase extends DrupalWebTestCase {
|
||||
|
||||
public static function getInfo() {
|
||||
return array(
|
||||
'name' => 'Theme engine test',
|
||||
'description' => 'Tests module-provided theme engines.',
|
||||
'group' => 'Theme',
|
||||
);
|
||||
}
|
||||
|
||||
function setUp() {
|
||||
parent::setUp('theme_test');
|
||||
theme_enable(array('test_theme', 'test_theme_nyan_cat'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensures that the module provided theme engine is found and used by core.
|
||||
*/
|
||||
function testEngineIsFoundAndWorking() {
|
||||
variable_set('theme_default', 'test_theme_nyan_cat');
|
||||
variable_set('admin_theme', 'test_theme_nyan_cat');
|
||||
|
||||
$this->drupalGet('theme-test/engine-info-test');
|
||||
$this->assertText('Miaou');
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -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').
|
||||
*/
|
||||
|
@@ -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,8 @@ hidden = TRUE
|
||||
settings[basetheme_only] = base theme value
|
||||
settings[subtheme_override] = base theme value
|
||||
|
||||
; 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"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ hidden = TRUE
|
||||
|
||||
settings[subtheme_override] = subtheme value
|
||||
|
||||
; 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"
|
||||
|
||||
|
@@ -17,8 +17,8 @@ stylesheets[all][] = system.base.css
|
||||
|
||||
settings[theme_test_setting] = default value
|
||||
|
||||
; 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"
|
||||
|
||||
|
@@ -0,0 +1 @@
|
||||
Miaou
|
@@ -0,0 +1,11 @@
|
||||
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 2017-02-01
|
||||
version = "7.54"
|
||||
project = "drupal"
|
||||
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"
|
||||
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -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 @@ package = Testing
|
||||
version = VERSION
|
||||
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