From 9072cb13280c02aa1655e71ac90b2ecae43c4821 Mon Sep 17 00:00:00 2001
From: Alfred Bacon <bacon@gatech.edu>
Date: Thu, 7 Apr 2011 12:08:08 -0400
Subject: [PATCH 1/2] Issue #665174: Added CSS class to ul in og_details block and added classes to create content type links

---
 og.module |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/og.module b/og.module
index a236ec5..344c94a 100644
--- a/og.module
+++ b/og.module
@@ -2360,7 +2360,8 @@ function og_block_details() {
     // Modify these links by reference. If you want control of the whole block, see og_block_details().
     drupal_alter('og_links', $links, $node);
 
-    $block['content'] = theme('item_list', $links);
+    $block['content'] = theme('item_list', $links, NULL, 'ul', array('class' => 
+'og-links'));
     $block['subject'] = l($node->title, "node/$node->nid");
     return $block;
   }
@@ -2421,7 +2422,7 @@ function og_og_create_links($group) {
     $type_url_str = str_replace('_', '-', $post_type);
     if (module_invoke($types[$post_type]->module, 'access', 'create', $post_type, $user)) {
       $links["create_$post_type"] = l(t('Create !type', array('!type' => $type_name)), "node/add/$type_url_str", array(
-        'attributes' => array('title' => t('Add a new !type in this group.', array('!type' => $type_name))),
+        'attributes' => array('title' => t('Add a new !type in this group.', array('!type' => $type_name)), 'class' => 'create-' . $post_type),
         'query' => "gids[]=$group->nid",
         ));
     }
-- 
1.7.0.2


From 6d8db8c4ff92657173abe1eda6494cd74f9f1929 Mon Sep 17 00:00:00 2001
From: Alfred Bacon <bacon@gatech.edu>
Date: Thu, 7 Apr 2011 12:13:31 -0400
Subject: [PATCH 2/2] Issue #665174: Added CSS class to ul in og_details block and added classes to create content type links

---
 og.module |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/og.module b/og.module
index 344c94a..8c7da6f 100644
--- a/og.module
+++ b/og.module
@@ -2360,8 +2360,7 @@ function og_block_details() {
     // Modify these links by reference. If you want control of the whole block, see og_block_details().
     drupal_alter('og_links', $links, $node);
 
-    $block['content'] = theme('item_list', $links, NULL, 'ul', array('class' => 
-'og-links'));
+    $block['content'] = theme('item_list', $links, NULL, 'ul', array('class' => 'og-links'));
     $block['subject'] = l($node->title, "node/$node->nid");
     return $block;
   }
-- 
1.7.0.2

