? drupalorg_project/cvs.txt
cvs diff: Diffing drupalorg_project
Index: drupalorg_project/drupalorg_project.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drupalorg/drupalorg_project/drupalorg_project.install,v
retrieving revision 1.1
diff -u -p -r1.1 drupalorg_project.install
--- drupalorg_project/drupalorg_project.install	18 Oct 2010 23:30:38 -0000	1.1
+++ drupalorg_project/drupalorg_project.install	25 Oct 2010 06:34:45 -0000
@@ -14,3 +14,24 @@
 function drupalorg_project_install() {
   db_query("UPDATE {system} SET weight = 5 WHERE name = 'drupalorg_project'");
 }
+
+/**
+ * Split off some terms from 'Maintenance status' into 'Development status'.
+ */
+function drupalorg_project_update_6000() {
+  $ret = array();
+  $ret[] = update_sql("UPDATE {term_data} SET vid = 46 WHERE tid IN (9988, 9994, 13030)");
+  $ret[] = update_sql("UPDATE {term_data} SET name = 'Maintenance fixes only' WHERE tid = 13030");
+  $term = array(
+    'name' => 'No further development',
+    'description' => '',
+    'parent' => array(),
+    'relations' => array(),
+    'weight' => 0,
+    'vid' => 46,
+  );
+  taxonomy_save_term($term);
+
+  return $ret;
+}
+
Index: drupalorg_project/drupalorg_project.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drupalorg/drupalorg_project/drupalorg_project.module,v
retrieving revision 1.38
diff -u -p -r1.38 drupalorg_project.module
--- drupalorg_project/drupalorg_project.module	19 Oct 2010 01:34:37 -0000	1.38
+++ drupalorg_project/drupalorg_project.module	25 Oct 2010 06:34:45 -0000
@@ -775,14 +775,12 @@ function drupalorg_project_meta_data($no
         foreach ($taxonomy[$vocabulary->vid] as $term) {
           $options = array();
           if ($term->vid == '44') { // Maintenance status
-            $project_status = $term->tid;
+            $maintenance_status = $term->tid;
             switch ($term->tid) {
-              case '9994':   // Obsolete
               case '13032':  // Abandoned
                 $options['attributes'] = array('class' => 'alert');
                 break;
 
-              case '13030':  // Basically maintained
               case '9990':   // Seeking co-maintainer(s)
               case '9992':   // Seeking new maintainer
                 $options['attributes'] = array('class' => 'warning');
@@ -790,6 +788,20 @@ function drupalorg_project_meta_data($no
 
             }
           }
+          elseif ($term->vid == '46') { // Development status
+            $development_status = $term->tid;
+            switch ($term->tid) {
+              case '9994':   // Obsolete
+                $options['attributes'] = array('class' => 'alert');
+                break;
+
+              case '13030':  // Maintenance fixes only
+              case '16374':  // No futher development
+                $options['attributes'] = array('class' => 'warning');
+                break;
+
+            }
+          }
           // Special-case module category terms to link to download+extend.
           if ($term->vid == $project_vid && $project_type->tid == '14') {
             // Only use the 'terms' style for module categories.
@@ -813,10 +825,14 @@ function drupalorg_project_meta_data($no
         $info[$label] = '<span class="' . $class . '">' . implode(', ', $links) . '</span>';
       }
     }
-    if (empty($project_status)) {
+    if (empty($maintenance_status)) {
       $label = t('Maintenance status');
       $info[$label] = '<span class="warning">' . t('Unknown') . '</span>';
     }
+    if (empty($development_status)) {
+      $label = t('Development status');
+      $info[$label] = '<span class="warning">' . t('Unknown') . '</span>';
+    }
   }
   
   // Usage stats.
