function unused_modules_drush_command in Unused Modules 6
Same name and namespace in other branches
- 8 unused_modules.drush.inc \unused_modules_drush_command()
- 7 unused_modules.drush.inc \unused_modules_drush_command()
Implements hook_drush_command().
File
- ./
unused_modules.drush.inc, line 10 - Drush implementation for the unused_modules module.
Code
function unused_modules_drush_command() {
$items = array();
$items['unused-modules'] = array(
'description' => 'Show unused modules or projects.',
'aliases' => array(
'um',
'unused_modules',
),
'arguments' => array(
'type' => 'Options "projects" and "modules". Show modules or projects (defaults to projects).',
'show' => 'Options "all" and "disabled". Show only disabled modules (defaults to disabled).',
),
'examples' => array(
'Show projects that are unused.' => 'drush unused-modules projects disabled',
'As above, shorthand.' => 'drush um',
'As above, include projects with enabled modules.' => 'drush unused-modules projects disabled',
'Show modules that are unused.' => 'drush unused-modules modules disabled',
'As above, include enabled modules.' => 'drush unused-modules modules disabled',
),
);
return $items;
}