diff --git a/new_relic_rpm.drush.inc b/new_relic_rpm.drush.inc
index d390279..e6d060a 100644
--- a/new_relic_rpm.drush.inc
+++ b/new_relic_rpm.drush.inc
@@ -5,7 +5,7 @@
  */
 
 /**
- * Implementation of hook_drush_init().
+ * Implements hook_drush_init().
  */
 function new_relic_rpm_drush_init() {
   // Make sure we have access to the needed functions.
diff --git a/new_relic_rpm.info b/new_relic_rpm.info
index 98a0d09..5fcf9fc 100644
--- a/new_relic_rpm.info
+++ b/new_relic_rpm.info
@@ -2,5 +2,5 @@
 name = New Relic RPM
 description = Integration with the New Relic RPM reporting and optimization system.
 version = "6.x-1.0"
-core = 6.x
+core = 7.x
 project = "new_relic_rpm"
\ No newline at end of file
diff --git a/new_relic_rpm.install b/new_relic_rpm.install
index e8fa68a..08f2606 100644
--- a/new_relic_rpm.install
+++ b/new_relic_rpm.install
@@ -5,12 +5,19 @@
  */
 
 /**
- * Implement hook_install().
+ * Implements hook_install().
  */
 function new_relic_rpm_install() {
   // Set New Relic RPM module's weight to very low so we can trigger job state
   // changes early. This can be important in cases like hook_cron().
-  db_query("UPDATE {system} SET weight = -20 WHERE name = 'new_relic_rpm'");
+  // TODO Please review the conversion of this statement to the D7 database API syntax.
+  /* db_query("UPDATE {system} SET weight = -20 WHERE name = 'new_relic_rpm'") */
+  db_update('system')
+  ->fields(array(
+    'weight' => -20,
+  ))
+  ->condition('name', 'new_relic_rpm')
+  ->execute();
 }
 
 /**
@@ -21,13 +28,13 @@ function new_relic_rpm_install() {
  */
 function new_relic_rpm_enable() {
   if (!function_exists('newrelic_background_job')) {
-    drupal_set_message('The New Relic RPM PHP extension is missing. This extension must be installed and functional on your server before this module can be enabled. Visit '.l('the New Relic RPM installation guide','http://support.newrelic.com/kb/docs/php-agent').' for assistance','error');
+    drupal_set_message(t('The New Relic RPM PHP extension is missing. This extension must be installed and functional on your server before this module can be enabled. Visit <a href="@installation-guide">New Relic for PHP installation instructions</a> for assistance.', array('@installation-guide' => url('https://newrelic.com/docs/php/new-relic-for-php#installation'))), 'error');
     module_disable(array('new_relic_rpm'));
   }
 }
 
 /**
- * Implement hook_uninstall().
+ * Implements hook_uninstall().
  */
 function new_relic_rpm_uninstall() {
 
@@ -42,22 +49,8 @@ function new_relic_rpm_uninstall() {
 }
 
 /**
- * Set New Relic RPM module's weight to very low.
- *
- * @see new_relic_rpm_install()
+ * Implements hook_update_last_removed().
  */
-function new_relic_rpm_update_6001() {
-  db_query("UPDATE {system} SET weight = -20 WHERE name = 'new_relic_rpm'");
-}
-
-/**
- * Remove variable based app name and use the hard coded ini value.
- *
- * Since the ini value is required for newrelic to function correctly anyways,
- * it only makes sense that we go ahead and use it for our deployments as well.
- * This is doubly true since we document requiring this to be the same as the
- * value used by the rest of the monitoring.
- */
-function new_relic_rpm_update_6002() {
-  variable_del('new_relic_rpm_app_name');
+function new_relic_rpm_update_last_removed() {
+  return 6002;
 }
diff --git a/new_relic_rpm.module b/new_relic_rpm.module
index ac91aed..3ade554 100644
--- a/new_relic_rpm.module
+++ b/new_relic_rpm.module
@@ -5,7 +5,7 @@
  */
 
 /**
- * Implementation of hook_menu().
+ * Implements hook_menu().
  */
 function new_relic_rpm_menu() {
   $items['admin/content/new-relic-rpm'] = array(
@@ -16,7 +16,7 @@ function new_relic_rpm_menu() {
     'access arguments' => array('create new relic rpm deployments'),
     'file' => 'new_relic_rpm.settings.inc',
   );
-  $items['admin/settings/new-relic-rpm'] = array(
+  $items['admin/config/development/new-relic-rpm'] = array(
     'title' => 'New Relic RPM Settings',
     'description' => 'Alter settings and mange your New Relic RPM Integration.',
     'page callback' => 'drupal_get_form',
@@ -44,18 +44,24 @@ function new_relic_rpm_menu() {
 }
 
 /**
- * Implementation of hook_perm().
+ * Implements hook_permission().
  */
-function new_relic_rpm_perm() {
+function new_relic_rpm_permission() {
   return array(
-    'administer new relic rpm',
-    'view new relic rpm reports',
-    'create new relic rpm deployments',
+    'administer new relic rpm' => array(
+      'title' => t('Administer new relic rpm'),
+    ),
+    'view new relic rpm reports' => array(
+      'title' => t('View new relic rpm reports'),
+    ),
+    'create new relic rpm deployments' => array(
+      'title' => t('Create new relic rpm deployments'),
+    ),
   );
 }
 
 /**
- * Implementation of hook_cron().
+ * Implements hook_cron().
  *
  * This is used to set cron tasks to be not tracked by RPM if so desired.
  */
@@ -65,7 +71,7 @@ function new_relic_rpm_cron() {
 }
 
 /**
- * Implementation of hook_boot().
+ * Implements hook_boot().
  *
  * This is used to set various RPM settings by URL.
  */
@@ -98,25 +104,9 @@ function new_relic_rpm_boot() {
 }
 
 /**
- * Implementation of hook_form_alter().
- *
- * Add a submit action to the system_module enable/disable form
+ * @todo Please document this function.
+ * @see http://drupal.org/node/1354
  */
-function new_relic_rpm_form_system_modules_alter(&$form, &$form_state) {
-
-  if (variable_get('new_relic_rpm_module_deployment', FALSE) &&
-      // If the API Key and/or App name is/are not set, there is no sense in
-      // attempting to create deployments.
-      ini_get('newrelic.appname') &&
-      variable_get('new_relic_rpm_api_key', '')) {
-
-    // We need our module check to run first--before the actuall install is done by Drupal.
-    $form['#submit'][-1000] = 'new_relic_rpm_modules_enabled';
-    ksort($form['#submit']);
-    reset($form['#submit']);
-  }
-}
-
 function new_relic_rpm_set_job_state($setting) {
   static $newrelic_module;
 
@@ -147,68 +137,22 @@ function new_relic_rpm_set_job_state($setting) {
 }
 
 /**
- * Submit callback for system module page.
- *
- * Because we need to determine which modules Drupal is going to install, we
- * are going to perform the same actions as the actual module install process,
- * minus the actual installation of the modules.
+ * Implements hook_modules_enabled().
  */
-function new_relic_rpm_modules_enabled($form, &$form_state) {
-  include_once './includes/install.inc';
-  $new_modules = array();
-  $enable_modules = array();
-  $disable_modules = array();
-
-  // If we are coming from the confirm form...
-  if (!isset($form_state['storage'])) {
-    // Merge in disabled active modules since they should be enabled.
-    // They don't appear because disabled checkboxes are not submitted
-    // by browsers.
-    $form_state['values']['status'] = array_merge($form_state['values']['status'], $form_state['values']['disabled_modules']);
-
-    // Check values for dependency that we can't install.
-    $dependencies = system_module_build_dependencies($form_state['values']['validation_modules'], $form_state['values']);
-
-  }
-  else {
-    $dependencies = NULL;
-  }
-
-  // Return if there are dependencies and they were not yet confirmed.
-  if ($dependencies && !isset($form_state['values']['confirm'])) {
-    return;
-  }
-
-  // Dependencies are covered. Drupal is going to install modules. Find out which.
-  foreach ($form_state['values']['status'] as $key => $choice) {
-    if ($choice) {
-      if (drupal_get_installed_schema_version($key) == SCHEMA_UNINSTALLED) {
-        $new_modules[] = $key;
-      }
-      else {
-        $enable_modules[] = $key;
-      }
-    }
-    else {
-      $disable_modules[] = $key;
-    }
-  }
-
-  // Validate new modules.
-  foreach ($new_modules as $key => $module) {
-    if (!drupal_check_module($module)) {
-      unset($new_modules[$key]);
-    }
+function new_relic_rpm_modules_enabled($modules) {
+  // Make the Deploy call to New Relic.
+  if (!empty($modules)) {
+    new_relic_rpm_module_deploy($modules, NULL);
   }
+}
 
-  $old_module_list = module_list();
-
-  $new_modules = array_diff(array_merge($enable_modules, $new_modules), $old_module_list);
-  $disable_modules = array_intersect($disable_modules, $old_module_list);
-
+/**
+ * Implements hook_modules_disabled().
+ */
+function new_relic_rpm_modules_disabled($modules) {
   // Make the Deploy call to New Relic.
-  if (!empty($new_modules) || !empty($disable_modules)) {
-    new_relic_rpm_module_deploy($new_modules, $disable_modules);
+  if (!empty($modules)) {
+    new_relic_rpm_module_deploy(NULL, $modules);
   }
 }
 
@@ -216,26 +160,32 @@ function new_relic_rpm_modules_enabled($form, &$form_state) {
  * Log module enable/disable actions as a deploy call to New Relic RPM.
  */
 function new_relic_rpm_module_deploy($new_modules, $disable_modules) {
-  $modules_installed = !empty($new_modules);
-  $modules_removed = !empty($disable_modules);
+  // If the API Key and/or App name is/are not set, there is no sense in
+  // attempting to create deployments.
+  if (variable_get('new_relic_rpm_module_deployment', FALSE) &&
+      ini_get('newrelic.appname') &&
+      variable_get('new_relic_rpm_api_key', '')) {
+    $modules_installed = !empty($new_modules);
+    $modules_removed = !empty($disable_modules);
 
-  if ($modules_installed) {
-    $m_inst = 'Modules Installed: ' . implode(', ', $new_modules ) . "\n";
-  }
-  else {
-    $m_inst = '';
-  }
+    if ($modules_installed) {
+      $m_inst = 'Modules Installed: ' . implode(', ', $new_modules ) . "\n";
+    }
+    else {
+      $m_inst = '';
+    }
 
-  if ($modules_removed) {
-    $m_remv = 'Modules Removed: ' . implode(', ', $disable_modules) . "\n";
-  }
-  else {
-    $m_remv = '';
-  }
+    if ($modules_removed) {
+      $m_remv = 'Modules Removed: ' . implode(', ', $disable_modules) . "\n";
+    }
+    else {
+      $m_remv = '';
+    }
 
-  _new_relic_rpm_deploy('Drupal Module Install/Uninstall',
-    'Drupal modules were installed: ' . ($modules_installed ? 'YES' : 'NO') . ' and uninstalled: ' . ($modules_removed ? 'YES' : 'NO'),
-    $m_inst . $m_remv);
+    _new_relic_rpm_deploy('Drupal Module Install/Uninstall',
+      'Drupal modules were installed: ' . ($modules_installed ? 'YES' : 'NO') . ' and uninstalled: ' . ($modules_removed ? 'YES' : 'NO'),
+      $m_inst . $m_remv);
+  }
 }
 
 /**
@@ -262,13 +212,14 @@ function new_relic_rpm_curl($url, $post = array()) {
   $api_key = variable_get('new_relic_rpm_api_key', '');
 
   // Set the header with the API key.
-  $headers[] = "http-x-license-key: {$api_key}";
+  $headers[] = "x-api-key: {$api_key}";
 
   // Set up the cURL request.
   $ch = curl_init();
   curl_setopt($ch, CURLOPT_URL, $url);
   curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
+  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
   if (!empty($post)) {
     curl_setopt($ch, CURLOPT_POST, TRUE);
     curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
@@ -299,6 +250,6 @@ function new_relic_rpm_curl($url, $post = array()) {
  *   1 if there is a match, 0 if there is not a match.
  */
 function new_relic_rpm_page_match($path, $patterns) {
-  $regexp = '/^('. preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\<front\\\\>($|\|)/'), array('|', '.*', '\1'. preg_quote(variable_get('site_frontpage', 'node'), '/') .'\2'), preg_quote($patterns, '/')) .')$/';
+  $regexp = '/^(' . preg_replace(array('/(\r\n?|\n)/', '/\\\\\*/', '/(^|\|)\\\\<front\\\\>($|\|)/'), array('|', '.*', '\1' . preg_quote(variable_get('site_frontpage', 'node'), '/') . '\2'), preg_quote($patterns, '/')) . ')$/';
   return preg_match($regexp, $path);
 }
diff --git a/new_relic_rpm.reports.inc b/new_relic_rpm.reports.inc
index 6a61d73..1ab93ff 100644
--- a/new_relic_rpm.reports.inc
+++ b/new_relic_rpm.reports.inc
@@ -12,7 +12,7 @@ function new_relic_rpm_reporting() {
   // If no API key is set, break here and error out.
   $api_key = variable_get('new_relic_rpm_api_key', '');
   if (empty($api_key)) {
-    drupal_set_message(t('You need to enter your New Relic API key from your New Relic account settings page before you are able to view reports within Drupal. Visit the <a href="!settings">New Relic RPM Drupal admin page</a> to enter your API key.', array('!settings' => url('admin/settings/new-relic-rpm'))), 'error');
+    drupal_set_message(t('You need to enter your New Relic API key from your New Relic account settings page before you are able to view reports within Drupal. Visit the <a href="@settings">New Relic RPM Drupal admin page</a> to enter your API key.', array('@settings' => url('admin/config/new-relic-rpm'))), 'error');
     return '<h2>' . t('No API key found.') . '</h2>';
   }
 
@@ -26,7 +26,7 @@ function new_relic_rpm_reporting() {
   }
   // Error out of the return is False, store data if it is good.
   if (!$app_health) {
-    drupal_set_message(t('The New Relic REST API has denied your key. Either the key you entered on the <a href="!settings">New Relic RPM Drupal admin page</a> is incorrect, or you have not enabled API access for this application within the New Relic RPM webiste.', array('!settings' => url('admin/settings/new-relic-rpm'))), 'error');
+    drupal_set_message(t('The New Relic REST API has denied your key. Either the key you entered on the <a href="@settings">New Relic RPM Drupal admin page</a> is incorrect, or you have not enabled API access for this application within the New Relic RPM webiste.', array('@settings' => url('admin/config/new-relic-rpm'))), 'error');
     return '<h2>' . t('API access denied.') . '</h2>';
   }
   else {
@@ -47,7 +47,7 @@ function new_relic_rpm_reporting_details($cust_id, $app_id) {
   // If no API key is set, break here and error out.
   $api_key = variable_get('new_relic_rpm_api_key', '');
   if (empty($api_key)) {
-    drupal_set_message(t('You need to enter your New Relic API key from your New Relic account settings page before you are able to view reports within Drupal. Visit the <a href="!settings">New Relic RPM Drupal admin page<a/> to enter your API key.', array('!settings' => url('admin/settings/new-relic-rpm'))), 'error');
+    drupal_set_message(t('You need to enter your New Relic API key from your New Relic account settings page before you are able to view reports within Drupal. Visit the <a href="@settings">New Relic RPM Drupal admin page<a/> to enter your API key.', array('@settings' => url('admin/config/new-relic-rpm'))), 'error');
     return '<h2>' . t('No API key found.') . '</h2>';
   }
 
@@ -61,7 +61,7 @@ function new_relic_rpm_reporting_details($cust_id, $app_id) {
 
   // Error out if value is false, save cached copy of XML if it is good.
   if (!$app_dashboard) {
-    drupal_set_message(t('The New Relic REST API has denied your key. Either the key you entered on the <a href="!settings">New Relic RPM Drupal admin page</a> is incorrect, or you have not enabled API access for this application within the New Relic RPM webiste.', array('!settings' => url('admin/settings/new-relic-rpm'))), 'error');
+    drupal_set_message(t('The New Relic REST API has denied your key. Either the key you entered on the <a href="@settings">New Relic RPM Drupal admin page</a> is incorrect, or you have not enabled API access for this application within the New Relic RPM webiste.', array('@settings' => url('admin/config/new-relic-rpm'))), 'error');
     return '<h2>' . t('API access denied.') . '</h2>';
   }
   else {
@@ -86,23 +86,23 @@ function new_relic_rpm_reporting_details($cust_id, $app_id) {
 function new_relic_rpm_render_health($app_health) {
 
   $app_obj = simplexml_load_string($app_health);
-  $cust_id = (string)$app_obj->account->id;
+  $cust_id = (string) $app_obj->account->id;
 
   $apps = $app_obj->account->applications;
-  foreach ($apps as $app){
+  foreach ($apps as $app) {
     foreach ($app as $data) {
 
       foreach ($data->{"threshold-values"} as $val) {
-          foreach ($val->threshold_value as $v) {
+        foreach ($val->threshold_value as $v) {
 
-            $app_name = (string)$data->name;
-            $attr_name = (string)$v->attributes()->name;
-            $app_data[$app_name][$attr_name]['val'] = (string)$v->attributes()->formatted_metric_value;
-            $app_data[$app_name][$attr_name]['mval'] = (string)$v->attributes()->metric_value;
-            $app_data[$app_name][$attr_name]['thresh'] = (string)$v->attributes()->threshold_value;
-            $app_data[$app_name]['AppID'] = (string)$data->id;
+          $app_name = (string) $data->name;
+          $attr_name = (string) $v->attributes()->name;
+          $app_data[$app_name][$attr_name]['val'] = (string) $v->attributes()->formatted_metric_value;
+          $app_data[$app_name][$attr_name]['mval'] = (string) $v->attributes()->metric_value;
+          $app_data[$app_name][$attr_name]['thresh'] = (string) $v->attributes()->threshold_value;
+          $app_data[$app_name]['AppID'] = (string) $data->id;
 
-          }
+        }
 
       }
     }
@@ -123,24 +123,21 @@ function new_relic_rpm_render_health($app_health) {
     'Details',
   );
 
+  $metrics = array('Apdex', 'Response Time', 'Errors', 'Error Rate', 'Throughput', 'Application Busy', 'DB', 'CPU', 'Memory');
   foreach ($app_data as $k => $v) {
-    $table['rows'][] = array(
-      $k,
-      $v['AppID'],
-      $v['Apdex']['mval'] > $v['Apdex']['thresh'] ? '<span class="error">'.$v['Apdex']['val'].'</span>' : $v['Apdex']['val'],
-      $v['Response Time']['mval'] > $v['Response Time']['thresh'] ? '<span class="error">'.$v['Response Time']['val'].'</span>' : $v['Response Time']['val'],
-      $v['Errors']['mval'] > $v['Errors']['thresh'] ? '<span class="error">'.$v['Errors']['val'].'</span>' : $v['Errors']['val'],
-      $v['Error Rate']['mval'] > $v['Error Rate']['thresh'] ? '<span class="error">'.$v['Error Rate']['val'].'</span>' : $v['Error Rate']['val'],
-      $v['Throughput']['mval'] > $v['Throughput']['thresh'] ? '<span class="error">'.$v['Throughput']['val'].'</span>' : $v['Throughput']['val'],
-      $v['Application Busy']['mval'] > $v['Application Busy']['thresh'] ? '<span class="error">'.$v['Application Busy']['val'].'</span>' : $v['Application Busy']['val'],
-      $v['DB']['mval'] > $v['DB']['thresh'] ? '<span class="error">'.$v['DB']['val'].'</span>' : $v['DB']['val'],
-      $v['CPU']['mval'] > $v['CPU']['thresh'] ? '<span class="error">'.$v['CPU']['val'].'</span>' : $v['CPU']['val'],
-      $v['Memory']['mval'] > $v['Memory']['thresh'] ? '<span class="error">'.$v['Memory']['val'].'</span>' : $v['Memory']['val'],
-      l('Details', 'admin/reports/new-relic-rpm/details/'.$cust_id.'/'.$v['AppID'], array('query'=>array('app_name'=>$k))),
-    );
+    $row = array($k, $v['AppID']);
+    foreach ($metrics as $metric) {
+      $cell = array('data' => $v[$metric]['val']);
+      if ($v[$metric]['mval'] > $v[$metric]['thresh']) {
+        $cell['class'] = 'error';
+      }
+      $row[] = $cell;
+    }
+    $row[] = l('Details', 'admin/reports/new-relic-rpm/details/' . $cust_id . '/' . $v['AppID'], array('query' => array('app_name' => $k)));
+    $table['rows'][] = $row;
   }
 
-  return theme_table($table['header'], $table['rows']);
+  return theme('table', $table);
 }
 
 /**
@@ -148,27 +145,35 @@ function new_relic_rpm_render_health($app_health) {
  */
 function new_relic_rpm_render_actions($cust_id, $app_id) {
 
-  $urls['overview'] = "https://rpm.newrelic.com/accounts/{$cust_id}/applications/{$app_id}";
-  $urls['web_transactions'] = "https://rpm.newrelic.com/accounts/{$cust_id}/applications/{$app_id}/transactions";
-  $urls['databases'] = "https://rpm.newrelic.com/accounts/{$cust_id}/applications/{$app_id}/databases";
-  $urls['bg_tasks'] = "https://rpm.newrelic.com/accounts/{$cust_id}/applications/{$app_id}/background_tasks?task=all";
-  $urls['traced_errors'] = "https://rpm.newrelic.com/accounts/{$cust_id}/applications/{$app_id}/traced_errors";
-  $urls['app_settings'] = "https://rpm.newrelic.com/accounts/{$cust_id}/applications/{$app_id}/edit";
-  $urls['alerts'] = "https://rpm.newrelic.com/accounts/{$cust_id}/applications/{$app_id}/edit_alerts";
-  $urls['deployments'] = "https://rpm.newrelic.com/accounts/{$cust_id}/applications/{$app_id}/deployments";
-
-  $output = '<h2>Quick Links for this Application</h2>';
-  $output .= '<p>Links open New Relic\'s website in a new window.</p>';
-  $output .= '<ul>';
-  $output .= '<li>'.l('Overview', $urls['overview'], array('attributes'=>array('target'=>'_blank'))).'</li>';
-  $output .= '<li>'.l('Web Transactions', $urls['web_transactions'], array('attributes'=>array('target'=>'_blank'))).'</li>';
-  $output .= '<li>'.l('Database Activity', $urls['databases'], array('attributes'=>array('target'=>'_blank'))).'</li>';
-  $output .= '<li>'.l('Background Tasks', $urls['bg_tasks'], array('attributes'=>array('target'=>'_blank'))).'</li>';
-  $output .= '<li>'.l('Traced Errors', $urls['traced_errors'], array('attributes'=>array('target'=>'_blank'))).'</li>';
-  $output .= '<li>'.l('App Settings', $urls['app_settings'], array('attributes'=>array('target'=>'_blank'))).'</li>';
-  $output .= '<li>'.l('App Alerts & Thresholds', $urls['alerts'], array('attributes'=>array('target'=>'_blank'))).'</li>';
-  $output .= '<li>'.l('Deployments', $urls['deployments'], array('attributes'=>array('target'=>'_blank'))).'</li>';
-  $output .= '</ul>';
+  $rpm_url = "https://rpm.newrelic.com/accounts/{$cust_id}/applications/{$app_id}";
+  $actions = array(
+    'transactions' => t('Web Transactions'),
+    'databases' => t('Database Activity'),
+    'background_tasks' => t('Background Tasks'),
+    'traced_errors' => t('Traced Errors'),
+    'edit' => t('App Settings'),
+    'edit_alerts' => t('App Alerts & Thresholds'),
+    'deployments' => t('Deployments'),
+  );
+  $links = array(
+    'overview' => array(
+      'title' => t("Overview"),
+      'href' => $rpm_url,
+      'attributes' => array('class' => '_blank'),
+    )
+  );
+  foreach ($actions as $action => $title) {
+    $links[$action] = array(
+      'title' => $title,
+      'href' => "{$rpm_url}/{$action}",
+      'attributes' => array('target' => '_blank'),
+    );
+  }
+
+  $list = array(
+    'heading' => t('Links to New Relic\'s website for this Application'),
+    'links' => $links,
+  );
 
-  return $output;
+  return theme('links', $list);
 }
diff --git a/new_relic_rpm.settings.inc b/new_relic_rpm.settings.inc
index 4da6e3f..ebddfe4 100644
--- a/new_relic_rpm.settings.inc
+++ b/new_relic_rpm.settings.inc
@@ -7,7 +7,7 @@
 /**
  * New Relic RPM settings form.
  */
-function new_relic_rpm_settings(&$form_state) {
+function new_relic_rpm_settings($form, &$form_state) {
   $form = array();
 
   $form['new_relic_rpm_track_drush'] = array(
@@ -82,7 +82,7 @@ function new_relic_rpm_settings(&$form_state) {
 /**
  * Form callback for manually creating a deployment.
  */
-function new_relic_rpm_deploy(&$form_state) {
+function new_relic_rpm_deploy($form, &$form_state) {
   $form = array();
 
   $form['deploy_user'] = array(
@@ -132,6 +132,6 @@ function new_relic_rpm_deploy_submit($form, &$form_state) {
     drupal_set_message(t('New Relic RPM deployment created successfully'), 'status');
   }
   else {
-    drupal_set_message(t('New Relic RPM deployment failed to be created. Please ensure you have your account configured on the <a href="!settings">New Relic RPM Drupal admin page</a>.', array('!settings' => url('admin/settings/new-relic-rpm'))), 'error');
+    drupal_set_message(t('New Relic RPM deployment failed to be created. Please ensure you have your account configured on the <a href="@settings">New Relic RPM Drupal admin page</a>.', array('@settings' => url('admin/config/new-relic-rpm'))), 'error');
   }
 }
