Issue #2159911 by InternetDevels, ParisLiakos: drupal_load() is called pointlessly.

8.0.x
Nathaniel Catchpole 2014-01-31 11:52:42 +00:00
parent 60fb1aab99
commit 87bff520d0
3 changed files with 0 additions and 8 deletions

View File

@ -104,16 +104,10 @@ function forum_module_preinstall($module) {
* Implements hook_uninstall().
*/
function forum_uninstall() {
// Load the dependent Taxonomy module, in case it has been disabled.
drupal_load('module', 'taxonomy');
if ($field = field_info_field('node', 'taxonomy_forums')) {
$field->delete();
}
// Load the dependent Comment module, in case it has been disabled.
drupal_load('module', 'comment');
if ($field = field_info_field('node', 'comment_forum')) {
$field->delete();
}

View File

@ -157,7 +157,6 @@ function simpletest_schema() {
* Implements hook_uninstall().
*/
function simpletest_uninstall() {
drupal_load('module', 'simpletest');
simpletest_clean_database();
// Remove generated files.

View File

@ -61,7 +61,6 @@ class ScanDirectoryTest extends FileTestBase {
* Check that the callback function is called correctly.
*/
function testOptionCallback() {
drupal_load('module', 'file_test');
// When nothing is matched nothing should be passed to the callback.
$all_files = file_scan_directory($this->path, '/^NONEXISTINGFILENAME/', array('callback' => 'file_test_file_scan_callback'));