123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /**
- * @file
- * Contains function relating to drush-integration of this module.
- */
- /**
- * Describes each drush command implemented by the module
- *
- * @return
- * The first line of description when executing the help for a given command
- */
- function tripal_pub_drush_help($command) {
- switch ($command) {
- case 'drush:tripal-pub-import':
- return dt('Imports publications from remote databases using saved configuration settings.');
- }
- }
- /**
- * Registers a drush command and constructs the full help for that command
- *
- * @return
- * And array of command descriptions
- */
- function tripal_pub_drush_command() {
- $items = array();
- $items['tripal-pub-import'] = array(
- 'description' => dt('Imports publications from remote databases using saved configuration settings.'),
- 'examples' => array(
- 'Standard example' => 'drush tripal-pub-import',
- ),
- 'aliases' => array('trp-pubs'),
- );
- return $items;
- }
- /**
- * Imports publications into Chado
- *
- */
- function drush_tripal_pub_import() {
- tripal_pub_import_publications();
- }
|