Issue #2159911 by InternetDevels, ParisLiakos: drupal_load() is called pointlessly.
parent
60fb1aab99
commit
87bff520d0
|
@ -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 @@ 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'));
|
||||
|
|
Loading…
Reference in New Issue