? views_attach-486644.patch
Index: views_attach.css
===================================================================
RCS file: views_attach.css
diff -N views_attach.css
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ views_attach.css	15 Jun 2009 20:32:05 -0000
@@ -0,0 +1,40 @@
+/*
+* $Id: $
+*
+* Collapsing fieldsets
+*/
+
+/* Removes Fieldset Border */
+html.js fieldset {
+border: 0; padding: 0;
+}
+
+html.js fieldset.collapsed {
+  border-bottom-width: 0;
+  border-left-width: 0;
+  border-right-width: 0;
+  margin-bottom: 0;
+}
+
+html.js fieldset.collapsed * {
+  display: none;
+}
+
+html.js fieldset.collapsed table *,
+html.js fieldset.collapsed legend,
+html.js fieldset.collapsed legend * {
+  display: inline;
+}
+
+html.js fieldset.collapsible legend a {
+  padding-left: 15px;
+  background: url(menu-expanded.png) 5px 50% no-repeat;
+}
+
+html.js fieldset.collapsed legend a {
+  background-image: url(menu-collapsed.png);
+}
+
+/* Note: IE-only fix due to '* html' (breaks Konqueror otherwise). */
+* html.js fieldset.collapsible legend a {
+}
\ No newline at end of file
Index: views_attach.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_attach/views_attach.module,v
retrieving revision 1.1.2.9.2.5
diff -u -p -r1.1.2.9.2.5 views_attach.module
--- views_attach.module	15 Jun 2009 19:12:34 -0000	1.1.2.9.2.5
+++ views_attach.module	15 Jun 2009 20:32:05 -0000
@@ -165,6 +165,7 @@ function views_attach_get_user_views($ca
 function views_attach_get_node_views($type, $mode = NULL) {
 
   static $used_views = array();
+  drupal_add_css('/views_attach.css', 'module', 'all', FALSE);
 
   if (empty($used_views)) {
     views_include('cache');
Index: views_attach_plugin_display_node_content.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_attach/views_attach_plugin_display_node_content.inc,v
retrieving revision 1.1.2.7.2.3
diff -u -p -r1.1.2.7.2.3 views_attach_plugin_display_node_content.inc
--- views_attach_plugin_display_node_content.inc	15 Jun 2009 19:12:34 -0000	1.1.2.7.2.3
+++ views_attach_plugin_display_node_content.inc	15 Jun 2009 20:32:05 -0000
@@ -111,7 +111,8 @@ class views_attach_plugin_display_node_c
         );
         // Add the token help to the form.
         $form['help'] = array(
-          '#value' => t('You may use token replacement to provide arguments based on the node. Token replacements require that NID is the first argument of the URL for the view.') . theme('token_help', 'node'),
+          '#value' => t('You may use token replacement to provide arguments based on the node. Token replacements require that NID is the first argument of the URL for the view.')
+                        . "<fieldset class='collapsible collapsed'><legend>Tokens</legend>" . theme('token_help', 'node') . "</fieldset>",
         );
         break;
 
@@ -153,6 +154,8 @@ class views_attach_plugin_display_node_c
      parent::pre_execute();
      $args = $this->view->args;
      $token_string = $this->view->display_handler->get_option('default_argument');
+     dpm($this->view->display_handler);
+     dpm($args);
      if (empty($args) || empty($token_string)) {
        return;
      }
