? 950884-styleguide-subtasks.patch
? 989060-styleguide-feed.patch
? 989060-styleguide-new.patch
? styleguide.js
Index: styleguide.styleguide.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/styleguide/styleguide.styleguide.inc,v
retrieving revision 1.9
diff -u -p -r1.9 styleguide.styleguide.inc
--- styleguide.styleguide.inc	16 Dec 2010 18:33:27 -0000	1.9
+++ styleguide.styleguide.inc	21 Dec 2010 14:27:24 -0000
@@ -174,6 +174,11 @@ function styleguide_styleguide() {
     'content' => theme('maintenance_page', array('content' => styleguide_paragraph(2))),
     'group' => t('System')
   );
+  $items['feed_icon'] = array(
+    'title' => t('Feed Icon'),
+    'content' => theme('feed_icon', array('url' => url('rss.xml'), 'title' => t('Syndicate'))),
+    'group' => t('System')
+  );
   $items['pager'] = array(
     'title' => t('Pager'),
     'content' => styleguide_pager(),
Index: modules/forum.inc
===================================================================
RCS file: modules/forum.inc
diff -N modules/forum.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/forum.inc	21 Dec 2010 14:27:24 -0000
@@ -0,0 +1,34 @@
+<?php
+// $Id: $
+
+/**
+ * Implements hook_styleguide().
+ */
+function forum_styleguide() {
+  $items = array();
+
+  module_load_include('inc', 'forum', 'forum.pages');
+  module_load_include('inc', 'forum', 'forum.admin');
+  
+  $root = forum_forum_load(0);
+  if(count($root->forums)!=0) {
+    $child = forum_forum_load(array_rand($root->forums, 1));
+  }
+  $items['forum_list'] = array(
+    'title' => t('Forum list'),
+    'content' => forum_page($root),
+    'group' => t('Forum')
+  );
+  $items['forum_topic_list'] = array(
+    'title' => t('Forum topic list'),
+    'content' => (count($root->forums)!=0) ? forum_page($child) : t('Please create a forum first.'),
+    'group' => t('Forum')
+  );
+  $items['forum_form'] = array(
+    'title' => t('Forum form'),
+    'content' => forum_form_main('forum'),
+    'group' => t('Forum')
+  );
+
+  return $items;
+}
Index: modules/image.inc
===================================================================
RCS file: modules/image.inc
diff -N modules/image.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/image.inc	21 Dec 2010 14:27:24 -0000
@@ -0,0 +1,23 @@
+<?php
+// $Id: $
+
+/**
+ * Implements hook_styleguide().
+ */
+function image_styleguide() {
+  $items = array();
+
+  if(file_destination('public://styleguide-preview.jpg', FILE_EXISTS_ERROR)!==false) {
+    file_unmanaged_copy(styleguide_image('vertical'), 'public://styleguide-preview.jpg', FILE_EXISTS_ERROR);
+  }
+
+  foreach(image_style_options(false) as $stylename=>$style) {
+    $items['image_'.$stylename] = array(
+      'title' => t('Image style, @stylename', array('@stylename' => $stylename)),
+      'content' => theme('image_style', array('path' => 'public://styleguide-preview.jpg', 'style_name' => $stylename)),
+      'group' => t('Media')
+    );
+  }
+
+  return $items;
+}
