function workbench_scheduler_schedules_exist in Workbench Scheduler 7
Same name and namespace in other branches
- 7.2 workbench_scheduler.module \workbench_scheduler_schedules_exist()
Check to see if schedules exist in the db.
Return value
bool Boolean TRUE/FALSE if at least one schedule exists.
1 call to workbench_scheduler_schedules_exist()
- _workbench_scheduler_run in ./
workbench_scheduler.module - Process the different workbench scheduler schedules.
File
- ./
workbench_scheduler.module, line 1138 - Content scheduling for Workbench.
Code
function workbench_scheduler_schedules_exist() {
// Run query to see if an sid can be turned.
// Should return a boolean TRUE/FALSE.
$count = db_select('workbench_scheduler_schedules', 'wss')
->fields('wss', array(
'sid',
))
->execute()
->rowCount();
return $count > 0;
}