? nodewords_basic_metatags-584720.1.patch
? nodewords_basic_metatags-584720.2.patch
? nodewords_basic_metatags-584720.3.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 05:14:59 -0000
@@ -211,6 +211,15 @@ 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 254 characters from the teaser
+          $content['value'] = trim(array_shift(explode("\n", wordwrap(trim(strip_tags($node->teaser), 254)))));
+        }
+        break;
     }
   }
 
