? removalofpowerdby.patch
? sites/default/files
? sites/default/private
? sites/default/settings.php
Index: modules/system/system.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.module,v
retrieving revision 1.821
diff -u -p -r1.821 system.module
--- modules/system/system.module	18 Oct 2009 11:34:44 -0000	1.821
+++ modules/system/system.module	19 Oct 2009 12:13:08 -0000
@@ -1750,46 +1750,6 @@ function system_block_info() {
 }
 
 /**
- * Implement hook_block_configure().
- */
-function system_block_configure($delta = '') {
-  if ($delta == 'powered-by') {
-    $image_path = 'misc/' . variable_get('drupal_badge_color', 'powered-blue') . '-' . variable_get('drupal_badge_size', '80x15') . '.png';
-    drupal_add_js(drupal_get_path('module', 'system') . '/system.js');
-    // Compile a list of fields to show
-    $form['wrapper']['color'] = array(
-      '#type' => 'select',
-      '#title' => t('Badge color'),
-      '#default_value' => variable_get('drupal_badge_color', 'powered-blue'),
-      '#options' => array('powered-black' => t('Black'), 'powered-blue' => t('Blue'), 'powered-gray' => t('Gray')),
-    );
-    $form['wrapper']['size'] = array(
-      '#type' => 'select',
-      '#title' => t('Badge size'),
-      '#default_value' => variable_get('drupal_badge_size', '80x15'),
-      '#options' => array('80x15' => t('Small'), '88x31' => t('Medium'), '135x42' => t('Large')),
-    );
-    $form['wrapper']['preview'] = array(
-      '#type' => 'item',
-      '#title' => 'Preview',
-      '#markup' => theme('image', array('path' => $image_path, 'alt' => t('Powered by Drupal, an open source content management system'), 'title' => t('Powered by Drupal, an open source content management system'), 'attributes' => array('class' => array('powered-by-preview')), 'getsize' => FALSE)),
-    );
-    return $form;
-  }
-}
-
-/**
- * Implement hook_block_save().
- */
-function system_block_save($delta = '', $edit = NULL) {
-  if ($delta == 'powered-by') {
-    $image_path = 'misc/' . variable_get('drupal_badge_color', 'powered-blue') . '-' . variable_get('drupal_badge_size', '80x15') . '.png';
-    variable_set('drupal_badge_color', $edit['color']);
-    variable_set('drupal_badge_size', $edit['size']);
-  }
-}
-
-/**
  * Implement hook_block_view().
  *
  * Generate a block with a promotional link to Drupal.org and
@@ -1803,9 +1763,8 @@ function system_block_view($delta = '') 
       $block['content'] = drupal_set_page_content();
       return $block;
     case 'powered-by':
-      $image_path = 'misc/' . variable_get('drupal_badge_color', 'powered-blue') . '-' . variable_get('drupal_badge_size', '80x15') . '.png';
       $block['subject'] = NULL;
-      $block['content'] = theme('system_powered_by', array('image_path' => $image_path));
+      $block['content'] = t('Powerd by <a href="@powerdby">Drupal</a>', array('@powerdby' => 'http://drupal.org'));
       return $block;
     case 'help':
       $block['subject'] = NULL;
