openscholar/openscholar — pull request #3867 by baisong (2013-09-19 17:37:38+00:00)
Title: make og_moderation patch against correct version 7.x-2.0 #3830

The correct patch:

```diff
diff --git a/og_moderation.module b/og_moderation.module
index ba6a0a0..f1d2170 100644
--- a/og_moderation.module
+++ b/og_moderation.module
@@ -106,26 +106,6 @@ function og_moderation_node_access_records($node) {
}

/**
- * Implements hook_node_grants().
- */
-function og_moderation_node_grants($account, $op) {
- $grants = array();
- if ($op == 'view') {
- $context = og_context();
- $gid = (isset($context['gid'])) ? $context['gid'] : FALSE;
- if ($gid) {
- $types = og_get_all_group_content_bundle();
- foreach (array_keys($types['node']) as $type) {
- if (og_user_access('node', $gid, "view any unpublished $type content", $account)) {
- $grants['og_view_any_unpublished_' . $type . '_content'][] = $gid;
- }
- }
- }
- }
- return $grants;
-}
-
-/**
* Implements hook_menu_alter().
*
* Modify menu items defined in other modules (in particular the Node and
```