From b886b513ab645acedbb4cdd45fbf8ef534fb6ceb Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 6 Dec 2009 21:36:44 -0500 Subject: [PATCH] in progress --- classes/ComicPressAdmin.inc | 18 +++++++++--------- classes/backends/ComicPressBackendURL.inc | 1 + classes/partials/_comic-image-ordering.inc | 3 --- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/classes/ComicPressAdmin.inc b/classes/ComicPressAdmin.inc index 3d772de..6514178 100644 --- a/classes/ComicPressAdmin.inc +++ b/classes/ComicPressAdmin.inc @@ -17,6 +17,8 @@ class ComicPressAdmin { add_filter('comicpress_display_attached_images', array(&$this, 'comicpress_display_attached_images'), 10, 2); } + add_action('edit_form_advanced', array(&$this, 'edit_form_advanced')); + add_filter('comicpress_core_version', array(&$this, 'comicpress_core_version')); $this->comic_image_types = array( @@ -33,6 +35,12 @@ class ComicPressAdmin { } } + function edit_form_advanced() { ?> + + + + {$method}($_REQUEST['cp']); - } else { - foreach (get_declared_classes() as $class_name) { - if (preg_match('#^ComicPressBackend.+Admin$#', $class_name) > 0) { - if (method_exists($class_name, $method)) { - $fa = new $class_name(); - $fa->{$method}($_REQUEST['cp']); - } - } - } } + do_action("comicpress-${method}", $_REQUEST['cp']); } } } diff --git a/classes/backends/ComicPressBackendURL.inc b/classes/backends/ComicPressBackendURL.inc index e22cfd4..47d1aed 100644 --- a/classes/backends/ComicPressBackendURL.inc +++ b/classes/backends/ComicPressBackendURL.inc @@ -122,3 +122,4 @@ class ComicPressBackendURLAdmin { } add_action('admin_menu', array('ComicPressBackendURLAdmin', 'admin_menu')); +add_action('comicpress-handle_update_backend_url_new_editor', array('ComicPressBackendURLAdmin', 'handle_update_backend_url_new_editor')); diff --git a/classes/partials/_comic-image-ordering.inc b/classes/partials/_comic-image-ordering.inc index 59bf430..eea87c9 100644 --- a/classes/partials/_comic-image-ordering.inc +++ b/classes/partials/_comic-image-ordering.inc @@ -1,7 +1,4 @@
- - -