From a0a5b228e772afaa8a5e3827be64dd5bb8c02fbb Mon Sep 17 00:00:00 2001 From: Nathan Haug <nate@quicksketch.org> Date: Tue, 16 Jul 2013 17:05:49 -0700 Subject: [PATCH] Issue #942684 by pillarsdotnet: Fix charts breakage due to #497118: Remove registry (for functions). --- charts.hooks.inc | 3 ++- charts.info | 5 ----- charts.install | 2 +- google_charts/google_charts.info | 2 -- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/charts.hooks.inc b/charts.hooks.inc index d23969f..35eaa12 100644 --- a/charts.hooks.inc +++ b/charts.hooks.inc @@ -24,9 +24,10 @@ function charts_chart_types() { * Implementation of hook_menu(). */ function charts_menu() { - $items['admin/settings/charts'] = array( + $items['admin/config/content/charts'] = array( 'access arguments' => array('set default settings for charts'), 'description' => 'Set the default behaviour and look of all your charts', + 'file' => 'charts.admin.inc', 'page callback' => 'drupal_get_form', 'page arguments' => array('_charts_settings_page'), 'title' => 'Charts' diff --git a/charts.info b/charts.info index 0e75b56..28f1e06 100644 --- a/charts.info +++ b/charts.info @@ -1,10 +1,5 @@ core = "7.x" description = "Transform DATA into INFORMATION using beautiful CHARTS." -files[] = charts.module -files[] = charts.admin.inc -files[] = charts.inc -files[] = charts.hooks.inc -files[] = charts.install name = "Charts" package = "Charts" php = 5.2 \ No newline at end of file diff --git a/charts.install b/charts.install index 26851bc..80b2566 100644 --- a/charts.install +++ b/charts.install @@ -37,7 +37,7 @@ function charts_requirements($phase) { $requirements['charts']['title'] = t('Charts'); $requirements['charts']['value'] = t('Charts module not yet configured'); $requirements['charts']['severity'] = REQUIREMENT_ERROR; - $requirements['charts']['description'] = t('Charts core module needs to get some default options in order to operate. You must go to <a href="!link">settings page</a> and configure it.', array('!link' => url('admin/settings/charts'))); + $requirements['charts']['description'] = t('Charts core module needs to get some default options in order to operate. You must go to <a href="!link">settings page</a> and configure it.', array('!link' => url('admin/config/content/charts'))); } if (isset($requirements)) { diff --git a/google_charts/google_charts.info b/google_charts/google_charts.info index 1a0efe5..9bb40aa 100644 --- a/google_charts/google_charts.info +++ b/google_charts/google_charts.info @@ -1,7 +1,5 @@ core = "7.x" dependencies[] = charts description = "Use Google Charts on your site." -files[] = google_charts.inc -files[] = google_charts.hooks.inc name = "Google" package = "Charts" -- GitLab