? nodewords_basic_metatags-584720.1.patch
? nodewords_basic_metatags-584720.2.patch
? nodewords_basic_metatags-584720.3.patch
? nodewords_basic_metatags-584720.4.patch
? nodewords_basic_metatags-584720.5.patch
? nodewords_basic_metatags-584720.patch
Index: basic_metatags/basic_metatags.metatags.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodewords/basic_metatags/Attic/basic_metatags.metatags.inc,v
retrieving revision 1.1.2.21
diff -u -p -r1.1.2.21 basic_metatags.metatags.inc
--- basic_metatags/basic_metatags.metatags.inc	24 Sep 2009 21:34:41 -0000	1.1.2.21
+++ basic_metatags/basic_metatags.metatags.inc	25 Sep 2009 08:05:30 -0000
@@ -211,6 +211,16 @@ function basic_metatags_description_prep
           $content['value'] = $voc->description;
         }
         break;
+
+      case 'node':
+        $node = node_prepare(node_load($options['ids'][0]), TRUE);
+        // Need to add in a setting so this can be turned on/off
+        if ($node) {
+          // Grab the first N characters from the teaser, stripping html from it.
+          $text = html_entity_decode(strip_tags($node->teaser));
+          $content['value'] = array_shift(explode("\n", wordwrap(str_replace("\n", ' ', $text), variable_get('nodewords_max_size', 255), "\n", TRUE)));
+        }
+        break;
     }
   }
 
