Cannot use drupal_get_path in hook_requirements

febbraro - April 16, 2009 - 21:50
Project:SWFObject API
Version:6.x-1.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

In trying to use the module in an install profile, using drupal_get_path causes errors. This patch fixes it to behave exactly the same, but also be compatible with install profiles.

Please review and let me know if there are any questions.

AttachmentSize
swfobject_api_requirements.patch730 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.