? 950884-styleguide-subtasks.patch
? 989072-filter.patch
? 989072.patch
? styleguide.js
Index: styleguide.styleguide.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/styleguide/styleguide.styleguide.inc,v
retrieving revision 1.10
diff -u -p -r1.10 styleguide.styleguide.inc
--- styleguide.styleguide.inc	21 Dec 2010 14:43:00 -0000	1.10
+++ styleguide.styleguide.inc	22 Dec 2010 15:34:38 -0000
@@ -179,6 +179,11 @@ function styleguide_styleguide() {
     'content' => theme('system_powered_by'),
     'group' => t('System')
   );
+  $items['confirm_form'] = array(
+    'title' => t('Confirm form'),
+    'content' => drupal_get_form('confirm_form', array('path' => '')),
+    'group' => t('System')
+  );
   $items['pager'] = array(
     'title' => t('Pager'),
     'content' => styleguide_pager(),
@@ -189,6 +194,12 @@ function styleguide_styleguide() {
     'content' => theme('progress_bar', array('percent' => 57, 'message' => styleguide_sentence(2))),
     'group' => t('User interface')
   );
+  // Use alternative item name to avoid conflict with main breadcrumb.
+  $items['styleguide_breadcrumb'] = array(
+    'title' => t('Breadcrumb'),
+    'content' => theme('breadcrumb', array('breadcrumb' => drupal_get_breadcrumb())),
+    'group' => t('User interface')
+  );
 
   return $items;
 }
Index: modules/filter.inc
===================================================================
RCS file: modules/filter.inc
diff -N modules/filter.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/filter.inc	22 Dec 2010 15:34:38 -0000
@@ -0,0 +1,46 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Style Guide plugin file for the Filter module.
+ */
+
+/**
+ * Return filter tips for display.
+ *
+ * @param $long
+ *   Boolean indicator of long format display.
+ *
+ * @return
+ *   Themed filter tips.
+ */
+function styleguide_filter_tips($long = TRUE) {
+  module_load_include('module', 'filter', 'filter');
+  module_load_include('inc', 'filter', 'filter.pages');
+  return theme('filter_tips', array('tips' => _filter_tips(-1, TRUE), 'long' => $long));
+}
+
+/**
+ * Implements hook_styleguide().
+ */
+
+function filter_styleguide() {
+  $items = array();
+
+  // This isn't quite right. What we want are the tips that appear under a textarea.
+  // Maybe we just add those to the textarea form?
+  $items['filter_tips'] = array(
+    'title' => t('Filter tips, short'),
+    'content' => styleguide_filter_tips(FALSE),
+    'group' => t('System')
+  );
+  // This one is fine.
+  $items['filter_tips_long'] = array(
+    'title' => t('Filter tips, long'),
+    'content' => styleguide_filter_tips(TRUE),
+    'group' => t('System')
+  );
+
+  return $items;
+}
Index: modules/search.inc
===================================================================
RCS file: modules/search.inc
diff -N modules/search.inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ modules/search.inc	22 Dec 2010 15:34:38 -0000
@@ -0,0 +1,50 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Style Guide plugin file for the Search module.
+ */
+
+/**
+ * Implements hook_styleguide().
+ */
+
+function search_styleguide() {
+  global $user;
+  $items = array();
+
+  $items['search_block_form'] = array(
+    'title' => t('Search block form'),
+    'content' => drupal_get_form('search_block_form'),
+    'group' => t('Search')
+  );
+
+  $items['search_no_results'] = array(
+    'title' => t('Search, no results'),
+    'content' => theme('search_results', array('results' => array())),
+    'group' => t('Search')
+  );
+
+  $results = array();
+  for ($i = 0; $i < 5; $i++) {
+    $node = array(
+      'link' => '#',
+      'title' => styleguide_sentence(),
+      'user' => theme('username', array('account' => $user)),
+      'date' => time(),
+      'extra' => array(styleguide_word(2)),
+      'snippet' => styleguide_word(25),
+      'language' => 'und',
+    );
+    $results[] = $node;
+  }
+
+  $items['search_results'] = array(
+    'title' => t('Search, results'),
+    'content' => theme('search_results', array('results' => $results)),
+    'group' => t('Search')
+  );
+
+  return $items;
+}
