function socialfeed_cron in Social Feed 6
Implements hook_cron().
Fires hook_update_index() in all modules and cleans up dirty words (see search_dirty).
File
- ./
socialfeed.module, line 358 - Module for fetching data from Facebook, Twitter, Youtube, and Foursquare. This module provides block content retrieved from a
Code
function socialfeed_cron() {
// Retrieve our variables.
$facebook_profile_id = variable_get('socialfeed_facebook_profile_id', FALSE);
$facebook_app_id = variable_get('socialfeed_facebook_app_id', FALSE);
$facebook_app_secret = variable_get('socialfeed_facebook_app_secret', FALSE);
$twitter_profile_name = variable_get('socialfeed_twitter_profile_id', FALSE);
$youtube_profile_name = variable_get('socialfeed_youtube_profile_name', FALSE);
$foursquare_access_token = variable_get('socialfeed_foursquare_access_token', FALSE);
if ($facebook_profile_id && $facebook_app_id && $facebook_app_secret) {
socialfeed_facebook();
}
if ($twitter_profile_name) {
socialfeed_twitter();
}
if ($youtube_profile_name) {
socialfeed_youtube();
}
if ($foursquare_access_token) {
socialfeed_foursquare();
}
}