function _media_sitemap_generate_sitemap in Media Sitemap 7
Creating batch for generating the sitemap.
1 call to _media_sitemap_generate_sitemap()
- media_sitemap_cron in ./
media_sitemap.module - Implements hook_cron().
1 string reference to '_media_sitemap_generate_sitemap'
- media_sitemap_menu in ./
media_sitemap.module - Implements hook_menu().
File
- ./
media_sitemap.module, line 183 - This module is used for creating XML sitemap of Image/Video for Google.
Code
function _media_sitemap_generate_sitemap() {
$operations[] = array(
'_media_sitemap_generate',
array(),
);
$batch = array(
'operations' => $operations,
'finished' => 'media_sitemap_finished',
'title' => t('Processing Image Sitemap Creation'),
'init_message' => t('Creating Image Sitemap.'),
'progress_message' => t('Creating Image Sitemap.....'),
'error_message' => t('Image Sitemap Creation has encountered an error.'),
);
batch_set($batch);
batch_process('mybatch');
}