function salesforce_mapping_drush_command in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/salesforce_mapping.drush.inc \salesforce_mapping_drush_command()
- 5.0.x modules/salesforce_mapping/salesforce_mapping.drush.inc \salesforce_mapping_drush_command()
Implements hook_drush_command().
File
- modules/
salesforce_mapping/ salesforce_mapping.drush.inc, line 15 - Drush integration for Salesforce.
Code
function salesforce_mapping_drush_command() {
$items['sf-prune-revisions'] = [
'description' => 'Delete old revisions of Mapped Objects, based on revision limit settings. Useful if you have recently changed settings, or if you have just updated to a version with prune support.',
'aliases' => [
'sfprune',
],
];
$items['sf-purge-drupal'] = [
'description' => 'Clean up Mapped Objects table by deleting any records which reference missing Drupal entities.',
'aliases' => [
'sfpd',
],
'options' => [
'mapping' => 'Given a mapping id, limit purge to only those referenced.',
],
];
$items['sf-purge-salesforce'] = [
'description' => 'Clean up Mapped Objects table by deleting any records which reference missing Salesforce records.',
'aliases' => [
'sfpsf',
],
'options' => [
'mapping' => 'Given a mapping id, limit purge to only those referenced.',
],
];
$items['sf-purge-mapping'] = [
'description' => 'Clean up Mapped Objects table by deleting any records which reference missing Mappings.',
'aliases' => [
'sfpmap',
],
'options' => [
'mapping' => 'Given a mapping id, limit purge to only those referenced.',
],
];
$items['sf-purge-all'] = [
'description' => 'Clean up Mapped Objects table by deleting any records which reference missing Mappings, Entities, or Salesforce records.',
'aliases' => [
'sfpall',
],
'options' => [
'mapping' => 'Given a mapping id, limit purge to only those referenced.',
],
];
return $items;
}