$args) { if (!empty($crons[$timestamp][$hook])) { $results[] = count($crons[$timestamp][$hook]); } unset($crons[$timestamp][$hook]); if (empty($crons[$timestamp])) { unset($crons[$timestamp]); } } /* * If the results are empty (zero events to unschedule), no attempt * to update the cron array is required. */ if (empty($results)) { return 0; } if (_set_cron_array($crons)) { return array_sum($results); } return false; } }