function joomla_cron in Joomla to Drupal 6
Same name and namespace in other branches
- 7 joomla.module \joomla_cron()
File
- ./
joomla.module, line 321 - The joomla module used for migrate Joomla to Drupal.
Code
function joomla_cron() {
if (variable_get('joomla_run_cron', JOOMLA_RUN_CRON)) {
if (variable_get('joomla_import_users', JOOMLA_IMPORT_USERS)) {
watchdog('joomla', 'Importing users via cron');
joomla_import_users();
}
if (variable_get('joomla_import_categories', JOOMLA_IMPORT_CATEGORIES)) {
watchdog('joomla', 'Importing categories via cron');
joomla_import_categories();
}
if (variable_get('joomla_import_content', JOOMLA_IMPORT_CONTENT)) {
watchdog('joomla', 'Importing content via cron');
joomla_import_content();
}
}
}