--- taxonomy_block.module~	Thu Feb 10 22:01:21 2005
+++ taxonomy_block.module	Sat Feb 26 08:43:57 2005
@@ -58,7 +58,7 @@
     return taxonomy_block_get_blocks();
   }
   elseif($op == 'configure') {
-    return l(t('Edit Taxonomy Block Settings'), 'admin/block/taxonomy_block/edit/'.$delta);
+    return l(t('Edit Taxonomy Block Settings'), 'admin/block/taxonomy_block/edit/'. $delta);
   }
   else {
     if (user_access('access content')) {
@@ -79,14 +79,14 @@
     $edit = $_POST['edit'];
   }
 
-  switch($op) {
-    case t('delete') :
+  switch ($op) {
+    case 'delete' :
         $output = taxonomy_block_confirm_delete($bid);
       break;
-    case t('edit') :
+    case 'edit' :
         $output = taxonomy_block_form($bid);
       break;
-    case t('Create Block') :
+    case 'Create Block' :
         if(substr($edit['tid'], 0, 1)=='v') {
           $type = 'vocabulary';
           $tid = substr($edit['tid'], 1);
@@ -97,7 +97,7 @@
         }
         taxonomy_block_insert($tid, $edit['name'], $edit['description'], $edit['length'], $type, $edit['teaser']);
       break;
-    case t('Edit Block') :
+    case 'Edit Block' :
         if(substr($edit['tid'], 0, 1)=='v') {
           $type = 'vocabulary';
           $tid = substr($edit['tid'], 1);
@@ -108,10 +108,10 @@
         }
         taxonomy_block_update($bid, $tid, $edit['name'], $edit['description'], $edit['length'], $type, $edit['teaser']);
       break;
-    case t('Delete Block') :
+    case 'Delete Block' :
         taxonomy_block_delete($bid);
       break;
-    case t('Cancel');
+    case 'Cancel';
         drupal_goto('admin/block/taxonomy_block');
       break;
   }
@@ -153,7 +153,7 @@
  * @param $bid The id of the block that is being deleted.
  */
 function taxonomy_block_delete($bid) {
-  db_query('DELETE FROM {taxonomy_block} WHERE bid=%d', $bid);
+  db_query('DELETE FROM {taxonomy_block} WHERE bid = %d', $bid);
 }
 
 /**
@@ -163,15 +163,15 @@
 * @return html formatted create form.
 */
 function taxonomy_block_form($bid = NULL) {
-  if($bid) {
-    $block = db_fetch_object(db_query('SELECT * FROM {taxonomy_block} WHERE bid=%d', $bid));
+  if ($bid) {
+    $block = db_fetch_object(db_query('SELECT * FROM {taxonomy_block} WHERE bid = %d', $bid));
   }
   $form = form_textfield(t('Block Name'), 'name', $block->name, 40, 40, t('This is the name of your block.'));
   $form .= form_textfield(t('Block Description'), 'description', $block->description, 40, 40, t('This is the description of your block. It is not displayed to users.'));
   $form .= form_textfield(t('Teaser Length'), 'teaser', $block->teaser, 40, 40, t('This is the length of node body content to display under each title in characters. Leave blank for none.'));
   $form .= form_textfield(t('Block Length'), 'length', $block->length, 40, 40, t('This is the number of nodes to display.'));
-  $form .= _taxonomy_block_get_taxonomy_dropdown($block->type == 'vocabulary' ? 'v'.$block->tid : $block->tid);
-  $form .= $bid ? form_submit(t('Edit Block')).form_submit(t('Cancel')) : form_submit(t('Create Block'));
+  $form .= _taxonomy_block_get_taxonomy_dropdown($block->type == 'vocabulary' ? 'v'. $block->tid : $block->tid);
+  $form .= $bid ? form_submit(t('Edit Block')) . form_submit(t('Cancel')) : form_submit(t('Create Block'));
   return form($form);
 }
 
@@ -182,9 +182,9 @@
 * @return block delete confirmaiton form.
 */
 function taxonomy_block_confirm_delete($bid) {
-  $block = db_fetch_object(db_query('SELECT * FROM {taxonomy_block} WHERE bid=%d', $bid));
+  $block = db_fetch_object(db_query('SELECT * FROM {taxonomy_block} WHERE bid = %d', $bid));
   if($block->bid) {
-    $form = form_submit(t('Delete Block')).form_submit(t('Cancel'));
+    $form = form_submit(t('Delete Block')) . form_submit(t('Cancel'));
     return form(form_item(t('Delete taxonomy block "%name"', array('%name' => $block->name)), $form, t('Are you sure you want to delete the taxonomy block?')));
   }
 }
@@ -216,7 +216,7 @@
 */
 function taxonomy_block_get_block($bid) {
   $tids = array();
-  $result = db_fetch_object(db_query('SELECT * FROM {taxonomy_block} WHERE bid=%d', $bid));
+  $result = db_fetch_object(db_query('SELECT * FROM {taxonomy_block} WHERE bid = %d', $bid));
   if ($result) {
     if ($result->type=='term') {
       $tids[] = $result->tid;
@@ -234,16 +234,16 @@
 
     while($node = db_fetch_object($nodes)) {
        $x++;
-       $content .= '<div id="'.$x.'" class="'.(substr(decbin($x), -1)?'flip':'flop').'"><h2>'.l($node->title, 'node/'.$node->nid,  array('title'=>t('view all'))).'</h2>';
+       $content .= '<div id="'. $x .'" class="'. (substr(decbin($x), -1)?'flip':'flop') .'"><h2>'. l($node->title, 'node/'. $node->nid,  array('title'=>t('view all'))) .'</h2>';
        if($result->teaser) {
-         $content .= strip_tags(substr($node->body, 0, $result->teaser).(strlen($node->body)>$result->teaser?'...':'')).'</div>';
+         $content .= strip_tags(substr($node->body, 0, $result->teaser) . (strlen($node->body)>$result->teaser?'...':'')) .'</div>';
        }
        else {
          $content .= '</div>';
        }
     }
 
-    $content .= '<div class="more-link '. (substr(decbin($x), -1)?'flip':'flop') .'">'. l(t("more"), 'taxonomy/term/'.implode($tids, '+'), array("title" => t("View all."))) .'</div>';
+    $content .= '<div class="more-link '. (substr(decbin($x), -1)?'flip':'flop') .'">'. l(t("more"), 'taxonomy/term/'. implode($tids, '+'), array("title" => t("View all."))) .'</div>';
     $block['content'] = $content;
     return $block;
   }
@@ -261,7 +261,7 @@
 function taxonomy_block_get_blocks() {
   $results = db_query('SELECT * FROM {taxonomy_block}');
   while($block = db_fetch_object($results)) {
-    $blocks[$block->bid]['info'] = t('Taxonomy Block: '). $block->description;
+    $blocks[$block->bid]['info'] = t('Taxonomy Block: ') . $block->description;
   }
   return $blocks;
 }
@@ -279,10 +279,10 @@
 
   $links[] = '';
   foreach($vocabs as $vocab) {
-    $links['v'.$vocab->vid] = $vocab->name;
+    $links['v'. $vocab->vid] = $vocab->name;
     $tree = taxonomy_get_tree($vocab->vid);
     foreach ($tree as $term) {
-      $links[$term->tid] = $vocab->name.' - '. $term->name;
+      $links[$term->tid] = $vocab->name .' - '. $term->name;
     }
   }
   $select = form_select('', 'tid', $tid, $links, t('Select taxonomy type to display'));
