function fb_cron_cron in Drupal for Facebook 5
Perform any actions that have been configured for all known applications.
File
- ./
fb_cron.module, line 59 - This module helps administer facebook-specific actions to be performed during cron jobs.
Code
function fb_cron_cron() {
$all_apps = fb_get_all_apps();
foreach ($all_apps as $fb_app) {
$fb_app_data = fb_app_get_data($fb_app);
$fb_cron_data = $fb_app_data['fb_cron'];
if (count($fb_cron_data['actions']) && function_exists('actions_do')) {
// Set paths as if on a canvas page.
fb_init_path($fb_app);
actions_do($fb_cron_data['actions'], $fb_app);
fb_init_path($fb_app, TRUE);
// restore original path settings.
}
}
}