Commit 87bff520 authored by catch's avatar catch

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

parent 60fb1aab
......@@ -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();
}
......
......@@ -157,7 +157,6 @@ function simpletest_schema() {
* Implements hook_uninstall().
*/
function simpletest_uninstall() {
drupal_load('module', 'simpletest');
simpletest_clean_database();
// Remove generated files.
......
......@@ -61,7 +61,6 @@ function testReturn() {
* 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'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment