You are here

function revision_deletion_list in Revision Deletion 5

Same name and namespace in other branches
  1. 6 revision_deletion.module \revision_deletion_list()

List all revisions of a node so they can be deleted manually.

1 string reference to 'revision_deletion_list'
revision_deletion_menu in ./revision_deletion.module
Implementation of hook_menu().

File

./revision_deletion.module, line 443
Node Revision Deletion, written by Greg Holsclaw

Code

function revision_deletion_list($nid) {

  // Make sure it's one of ours.
  $node = node_load($nid);
  if (in_array($node->type, variable_get('revision_delete', array()))) {
    return drupal_get_form('revision_deletion_list_form', $node);
  }
  else {
    return node_revision_overview($node);
  }
}