When I install this plug in I immediately get this error. Running the most recent version of Drupal

Notice: Undefined variable: forms in custom_pub_forms() (line 85 of /mnt/stor2-wc2-dfw1/440293/543906/www.mydomainname.com/web/content/sites/all/modules/custom_pub/custom_pub...).

Comments

parkej60’s picture

I added $forms = array(); at line 73 and it seems to have fixed the problem. Please update.

troyer’s picture

Title: Errors on install » Undefined variable: forms in custom_pub_forms() line 85 - custom_pub.module
Status: Active » Needs review

fixed it for me, though I don't know if it has repercussions.

troyer’s picture

Status: Needs review » Needs work

Did fix the error message but not the issue. State of the checkbox for the custom publishing option doesn't get saved/restored. So in the current state the module isn't functioning.

troyer’s picture

Status: Needs work » Fixed

Error message is fixed in the dev-version, Commit (2011/08/10 22:02) "#1244856 by carl.brown - fixed E_NOTICE error in hook_forms()". SHA: 2d58c982d1118471e2ea0512a9c0e01e8ca05b5c

Status: Fixed » Closed (fixed)

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