Index: sites/all/modules/drupalforfirebug/drupalforfirebug_preprocess.info
===================================================================
--- sites/all/modules/drupalforfirebug/drupalforfirebug_preprocess.info	(revision 1095)
+++ sites/all/modules/drupalforfirebug/drupalforfirebug_preprocess.info	(working copy)
@@ -2,7 +2,7 @@
 description = A helper extension for the Drupal for Firebug Firefox extension to do preprocessing of forms
 package = Development
 core = 7.x
-files[] = drupalforfirebug_preprocess.info
+files[] = drupalforfirebug_preprocess.module
 
 ; Information added by drupal.org packaging script on 2010-07-11
 version = "7.x-1.x-dev"
Index: sites/all/modules/drupalforfirebug/drupalforfirebug.module
===================================================================
--- sites/all/modules/drupalforfirebug/drupalforfirebug.module	(revision 1095)
+++ sites/all/modules/drupalforfirebug/drupalforfirebug.module	(working copy)
@@ -46,7 +46,7 @@
 */
 function drupalforfirebug_node_process(&$node, $op) {
   global $dfp_runtime;
-  if (!user_access('Access Firebug Debug')) {
+  if (!user_access('access firebug debug')) {
     return;
   }
   $nid = (isset($node->nid)) ? $node->nid : '*'. t('NEW') . '*';
@@ -60,7 +60,7 @@
 */
 function drupalforfirebug_views_pre_view(&$view, &$display_id) {
   global $dfp_runtime;
-  if (!user_access('Access Firebug Debug')) {
+  if (!user_access('access firebug debug')) {
     return;
   }
   $data = drupalforfirebug_array_compare((array) $dfp_runtime['drupalforfirebug_views']['original'][$view->name], (array) $view);
@@ -83,7 +83,7 @@
 */
 function drupalforfirebug_form_alter(&$form, &$form_state, $form_id) {
   global $dfp_runtime;
-  if (!user_access('Access Firebug Debug')) {
+  if (!user_access('access firebug debug')) {
     return;
   }
   if ($form_id != 'drupalforfirebug_execute_form') {
@@ -112,6 +112,6 @@
 */
 function drupalforfirebug_user_processing($op, &$account) {
   global $dfp_runtime;
-  if (!user_access('Access Firebug Debug')) {
+  if (!user_access('access firebug debug')) {
     return;
   }
@@ -210,7 +210,7 @@
 
 function drupalforfirebug_get_php_exec($code = NULL) {
   $output = '<fieldset>';
-  if (!user_access('Execute Firebug PHP')) {
+  if (!user_access('execute firebug php')) {
     $output .= '<legend>' . t('Execute Firebug PHP') . '</legend>';
     $output .= t('You do not have the proper permissions to use this functionality.');
     $output .= '</fieldset>';
@@ -261,7 +261,7 @@
 * Output Function to Return Hidden Div Containers in Footer
 */
 function drupalforfirebug_exit() {
-  if (!user_access('Access Firebug Debug')) {
+  if (!user_access('access firebug debug')) {
     return;
   }
   $output = '<div style="display: none" id="drupalforfirebug_general">';
@@ -311,7 +311,16 @@
 * Implementation of hook_permission()
 */
 function drupalforfirebug_permission() {
-  return array('Access Firebug Debug', 'Execute Firebug PHP');
+  return array(
+    'access firebug debug' => array(
+      'title' => t('Access Firebug Debug'),
+      'description' => t('TODO Add a description for Access Firebug Debug'),
+      ),
+    'execute firebug php' => array(
+      'title' => t('Execute Firebug PHP'),
+      'description' => t('TODO Add a description for Execute Firebug PHP'),
+      ),
+    );
 }
 
 /**
Index: sites/all/modules/drupalforfirebug/drupalforfirebug.install
===================================================================
--- sites/all/modules/drupalforfirebug/drupalforfirebug.install	(revision 1095)
+++ sites/all/modules/drupalforfirebug/drupalforfirebug.install	(working copy)
@@ -4,11 +4,16 @@
 * Implementation of hook_instal()
 */
 function drupalforfirebug_install() {
-  db_query("UPDATE {system} SET weight = 100000 WHERE name = 'drupalforfirebug'");
+  db_update('system')
+    ->fields(array('weight' => -100000))
+    ->condition('name', 'drupalforfirebug')
+    ->execute();
 }
 
-function drupalforfirebug_update_1() {
-  $items = array();
-  $items[] = update_sql("UPDATE {system} SET weight = 100000 WHERE name = 'drupalforfirebug'");
-  return $items;
+function drupalforfirebug_update_7000() {
+  db_update('system')
+    ->fields(array('weight' => -100000))
+    ->condition('name', 'drupalforfirebug')
+    ->execute();
+
 }
Index: sites/all/modules/drupalforfirebug/drupalforfirebug_preprocess.install
===================================================================
--- sites/all/modules/drupalforfirebug/drupalforfirebug_preprocess.install	(revision 1095)
+++ sites/all/modules/drupalforfirebug/drupalforfirebug_preprocess.install	(working copy)
@@ -4,5 +4,8 @@
 * Implementation of hook_install()
 */
 function drupalforfirebug_preprocess_install() {
-  db_query("UPDATE {system} SET weight = -100000 WHERE name = 'drupalforfirebug_preprocess'");
+  db_update('system')
+    ->fields(array('weight' => -100000))
+    ->condition('name', 'drupalforfirebug_preprocess')
+    ->execute();
 }
