Project

General

Profile

Download (477 Bytes) Statistics
| Branch: | Tag: | Revision:
1
<?php
2

    
3
/**
4
 * @file
5
 * Drush integration for the devel module.
6
 */
7

    
8
/**
9
 * Implements hook_drush_command().
10
 */
11
function cdm_dataportal_drush_command() {
12
  $items['drop-cdm-nodes'] = array(
13
    'description' => dt('Drops all drupal nodes created for cdm content.'),
14
  );
15
  return $items;
16
}
17

    
18
/**
19
 * Callback for the drop-cdm-nodes command
20
 */
21
function drush_cdm_dataportal_drop_cdm_nodes(){
22
  cdm_delete_all_cdm_nodes();
23
  drush_print("All cdm related drupal nodes dropped");
24
}
(7-7/16)