function social_content_cron_alter in Social Content 7.2
Same name and namespace in other branches
- 7 social_content.module \social_content_cron_alter()
Implements hook_cron_alter().
If using Elysia Cron or Ultimate Cron, remove default cron. We don't want it running multiple times.
File
- ./
social_content.module, line 242 - Social Content module.
Code
function social_content_cron_alter(&$data) {
if (isset($data['social_content_cron']) && (module_exists('elysia_cron') || module_exists('ultimate_cron'))) {
unset($data['social_content_cron']);
}
}