cf similar issues: https://drupal.org/node/656280 | https://drupal.org/node/888086#comment-3582470

The hook_init isn't when installing in a profile, so the file isn't included, and yet called at audiorecorderfield/audiorecorderfield.module on line 187.

Looking at at filefield, and the above, it seems the solution sadly is to include it in the module and hence at bootstrap time. Looking at the code it only seems to be the #element_validate callback function where it wouldn't be possible to include it as required. Maybe wrong though so...

Simple patch to just move it out of hook_init() follows.

CommentFileSizeAuthor
#1 1442402-01-audiorecorderfield-hook-init.patch1003 bytesekes

Comments

ekes’s picture

Status: Active » Needs review
StatusFileSize
new1003 bytes
tamerzg’s picture

Status: Needs review » Fixed

Thanks, I just committed to dev.

Status: Fixed » Closed (fixed)

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