You are here

function social_content_cron in Social Content 7

Same name and namespace in other branches
  1. 7.2 social_content.module \social_content_cron()

Implements hook_cron().

Run through the social content types and import the posts.

File

./social_content.module, line 142
Social Content module.

Code

function social_content_cron() {
  $types = social_content_get_types();
  foreach ($types as $social_content_type) {
    $settings = social_content_get_settings($social_content_type);
    if ($settings['enabled']) {
      social_content_run_import($social_content_type, $settings);
    }
  }
}