function xmlsitemap_custom_drush_command in XML sitemap 7.2
Implements hook_drush_command().
File
- xmlsitemap_custom/
xmlsitemap_custom.drush.inc, line 13 - Drush integration functions for the xmlsitemap_custom module.
Code
function xmlsitemap_custom_drush_command() {
$items['xmlsitemap-custom-scan'] = array(
'description' => 'Scan a directory for static files to include as custom XML sitemap links.',
'arguments' => array(
'directory' => 'The base directory to scan, without trailing slash.',
'mask' => 'The preg_match() regular expression of the files to find.',
),
'required-arguments' => TRUE,
'callback' => 'drush_xmlsitemap_custom_scan',
'drupal dependencies' => array(
'xmlsitemap_custom',
),
);
return $items;
}