updated core to 7.58 (right after the site was hacked)
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
name = "SimpleTest Example Mock Module"
|
||||
description = "Mock module for the SimpleTest Example module."
|
||||
package = Example modules
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
dependencies[] = simpletest_example
|
||||
|
||||
; Information added by Drupal.org packaging script on 2017-01-10
|
||||
version = "7.x-1.x-dev"
|
||||
core = "7.x"
|
||||
project = "examples"
|
||||
datestamp = "1484076787"
|
||||
|
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Implements simpletest_example_test module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The mock module for SimpleTest Example.
|
||||
*
|
||||
* This module exists so that we can enable it and use it to
|
||||
* test elements of simpletest_module.
|
||||
*
|
||||
* @ingroup simpletest_example
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_node_view().
|
||||
*
|
||||
* We'll just add some content to nodes of the type we like.
|
||||
*
|
||||
* @ingroup simpletest_example
|
||||
*/
|
||||
function simpletest_example_test_node_view($node, $view_mode, $langcode) {
|
||||
if ($node->type == 'simpletest_example') {
|
||||
$node->content['simpletest_example_test_section'] = array(
|
||||
'#markup' => t('The test module did its thing.'),
|
||||
'#weight' => -99,
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user