fields(‘n’, array(‘nid’))
->condition(‘type’, $node_type, ‘=’)
->execute();
$deleted_count = 0;
foreach ($result as $record) {
node_delete($record->nid);
$deleted_count++;
}
echo $deleted_count;
?>
Written by : By LiveHappy• October 8, 2015 •
fields(‘n’, array(‘nid’))
->condition(‘type’, $node_type, ‘=’)
->execute();
$deleted_count = 0;
foreach ($result as $record) {
node_delete($record->nid);
$deleted_count++;
}
echo $deleted_count;
?>
Haciendo De Tu Mundo Un Lugar Más Feliz.