function drush_expire_nid in Cache Expiration 6
Same name and namespace in other branches
- 7 expire.drush.inc \drush_expire_nid()
Callback for expire-node drush command.
Parameters
string $nids a space separated list of paths.:
1 string reference to 'drush_expire_nid'
- expire_drush_command in ./
expire.drush.inc - Implementation of hook_drush_command().
File
- ./
expire.drush.inc, line 109 - This is the drush integration for the expire module
Code
function drush_expire_nid() {
$nids = drush_get_arguments();
unset($nids[0]);
foreach ($nids as $nid) {
if (is_numeric($nid)) {
$node = node_load($nid);
expire_node($node);
}
}
}