We can't use module_load_include() inside hook_requirements().
That is why while installation the module within installation profile (install.php) a fatal error appears.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

danylevskyi’s picture

Here is a patch.

danylevskyi’s picture

hlykos’s picture

FileSize
523 bytes

When installing through a profile "Call to undefined function plupload_library_path()..." appears. With the above patch fixing the hook requirements it solves it but there is a"Call to undefined function db_result()..." error because the database does not exist yet.

The patch below bypasses the requirement if it is installed through a profile.

slashrsm’s picture

Can you conbine bot patches in one?

danylevskyi’s picture

Assigned: danylevskyi » Unassigned
Status: Needs review » Reviewed & tested by the community

#3 works great!

slashrsm’s picture

Status: Reviewed & tested by the community » Fixed

Commited. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

no patch currently :(