# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/blogapi/blogapi.install
--- contributions/modules/blogapi/blogapi.install Base (1.1)
+++ contributions/modules/blogapi/blogapi.install Locally Modified (Based On 1.1)
@@ -20,7 +20,19 @@
 function blogapi_uninstall() {
   // Remove tables.
   drupal_uninstall_schema('blogapi');
+
+  // Remove variables
+  variable_del('blogapi_node_types');
+  variable_del('blogapi_extensions_default');
+  variable_del('blogapi_uploadsize_default');
+  variable_del('blogapi_usersize_default');
+
+  foreach (user_roles(FALSE, 'administer content with blog api') as $rid => $role) {
+    variable_del('blogapi_extensions_'. $rid);
+    variable_del('blogapi_uploadsize_'. $rid);
+    variable_del('blogapi_usersize_'. $rid);
 }
+}
 
 
 /**
Index: contributions/modules/blogapi/blogapi.module
--- contributions/modules/blogapi/blogapi.module Base (1.4)
+++ contributions/modules/blogapi/blogapi.module Locally Modified (Based On 1.4)
@@ -723,7 +723,7 @@
  */
 function blogapi_admin_settings() {
   $node_types = array_map('check_plain', node_type_get_names());
-  $defaults = isset($node_types['blog']) ? array('blog' => 1) : array();
+  $defaults = isset($node_types['blog']) ? array('blog' => 'blog') : array();
   $form['blogapi_node_types'] = array(
     '#type' => 'checkboxes',
     '#title' => t('Enable for external blogging clients'),
@@ -852,7 +852,7 @@
   $base = url('', array('absolute' => TRUE));
   $blogid = 1; # until we figure out how to handle multiple bloggers
 
-  drupal_set_header('Content-Type', 'application/rsd+xml; charset=utf-8');
+  drupal_add_http_header('Content-Type', 'application/rsd+xml; charset=utf-8');
   print <<<__RSD__
 <?xml version="1.0"?>
 <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
@@ -962,7 +962,7 @@
 }
 
 function _blogapi_get_node_types() {
-  $available_types = array_keys(array_filter(variable_get('blogapi_node_types', array('blog' => 1))));
+  $available_types = array_keys(array_filter(variable_get('blogapi_node_types', array('blog' => 'blog'))));
   $types = array();
   foreach (node_type_get_types() as $type => $name) {
     if (node_access('create', $type) && in_array($type, $available_types)) {
