? input_filter.patch
Index: activitystream.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/activitystream/activitystream.module,v
retrieving revision 1.4
diff -u -p -r1.4 activitystream.module
--- activitystream.module	12 Aug 2008 06:02:02 -0000	1.4
+++ activitystream.module	12 Jul 2009 13:43:08 -0000
@@ -217,10 +217,14 @@ function activitystream_view($node, $tea
 
   if ($page) {
     // Breadcrumb navigation
-    $breadcrumb[] = array('path' => 'stream', 'title' => t($title));
-    $breadcrumb[] = array('path' => 'stream/'.$user->uid, 'title' => check_plain($user->name) .'\'s ' . $title);
-    $breadcrumb[] = array('path' => 'node/'. $node->nid);
-    menu_set_location($breadcrumb);
+    
+    drupal_set_breadcrumb(
+      array(
+        l(t($title), 'admin'),
+        l(check_plain($user->name) .'\'s ' . $title,'admin/settings/fckeditor'),
+        l($node->title, 'node/'. $node->nid)
+      )
+    );
   }
   return $node;
 }
@@ -342,7 +346,21 @@ function activitystream_settings() {
     '#type' => 'textfield',
     '#title' => t('Title'),
     '#default_value' => variable_get('activitystream_title', 'Activity Stream'),
-    '#description' => t('The title of the Activiy Stream in blocks and User Profiles.')
+    '#description' => t('The title of the Activiy Stream in blocks and User Profiles.'),
+  );
+  
+  $formats = filter_formats();
+  // Multiple formats available: display radio buttons with tips.
+  foreach ($formats as $format) {
+    //generate a list of the input formats
+    $options[$format->format] = $format->name;
+  }
+  $form['activitystream_input_type'] = array(
+    '#type' => 'select',
+    '#title' => t('Input format for the activity stream content'),
+    '#options' => $options,
+    '#default_value' => variable_get('activitystream_input_type', 'INPUT_FORMAT_DEFAULT'),
+    '#description' => t('The default input format used for the activity stream content nodes'),
   );
   
   return system_settings_form($form);
@@ -382,6 +400,7 @@ function activitystream_user_load($uid) 
 }
 
 function _activitystream_save($activity, $user, $name) {
+  include_once drupal_get_path('module', 'node'). '/node.pages.inc';
   // Find old-style activity guids. We changed to include the uid in the
   // guid so that we could have multiple users with the same activity.
   // But this meant that we'd duplicate items. So if we have an old-style
@@ -440,6 +459,7 @@ function _activitystream_save($activity,
     $node->title = $activity['title'];
     $node->body = $activity['body'];
     $node->created = $activity['timestamp'];
+    $node->format = variable_get('activitystream_input_type', FILTER_FORMAT_DEFAULT);
     $node->uid = $user->uid;
     $node->type = 'activitystream';
     if ($new) {
@@ -761,4 +781,4 @@ function activitystream_views_default_vi
   $views[$view->name] = $view;
 
   return $views;
-}
\ No newline at end of file
+}
