function image_delete_process in Node Gallery 6.2
2 string references to 'image_delete_process'
- node_gallery_images_edit_submit in ./
node_gallery.pages.inc - _node_gallery_delete in ./
node_gallery.module - Implementation of hook_nodeapi(op='delete').
File
- ./
node_gallery.module, line 425 - Node gallery module file
Code
function image_delete_process($images, &$context) {
if (!isset($context['sandbox']['progress'])) {
$context['sandbox']['progress'] = 0;
$context['sandbox']['total'] = count($images);
$context['results'][] = t('You deleted !num.', array(
'!num' => format_plural(count($images), '1 image', '@count images'),
));
}
foreach ($images as $image) {
node_delete($image->nid);
$context['sandbox']['progress']++;
}
node_gallery_set_cover($image->gid);
$context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['total'];
}