Had to add the following to the top of job_scheduler.module:
include "JobScheduler.inc";

Otherwise I was getting an error that JobScheduler was an undefined component.

Comments

Alan Evans’s picture

Status: Active » Postponed (maintainer needs more info)

That more likely indicates that the Drupal class autoloader didn't pick up the file, which can happen if the file is missing from the file registry (which shouldn't happen, but does under certain circumstances).

You shouldn't need the include, as Drupal will find the file in the .info file, add it to the registry and autoload it as soon as the class is instantiated for the first time.

Can you try rebuilding the file registry: http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/regist... or just doing a full cache clear should do this for you as well. Then remove the include and see if you still have the issue please.

If you're still seeing an error, please also post the exact error message. Thanks!

twistor’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I'm guessing this was fixed.