function revision_deletion_list in Revision Deletion 6
Same name and namespace in other branches
- 5 revision_deletion.module \revision_deletion_list()
List all revisions of a node so they can be deleted manually.
2 string references to 'revision_deletion_list'
- revision_deletion_menu in ./
revision_deletion.module - Implementation of hook_menu().
- revision_deletion_menu_alter in ./
revision_deletion.module - Implementation of hook_menu_alter(). Intercepts the core node revisions list and replaces it with ours.
File
- ./
revision_deletion.module, line 256 - Node Revision Deletion, written by Greg Holsclaw
Code
function revision_deletion_list($node) {
// Make sure it's one of ours.
if (in_array($node->type, variable_get('revision_delete', array()))) {
return drupal_get_form('revision_deletion_list_form', $node);
}
else {
module_load_include('inc', 'node', 'node.pages');
return node_revision_overview($node);
}
}