Refactor dashboard -> block_manager since it'll manage blocks site

wide, not just in the dashboard.
This commit is contained in:
Bharat Mediratta
2009-01-18 06:55:04 +00:00
parent 3d1ea2904d
commit 7b68ca9946
7 changed files with 43 additions and 40 deletions
@@ -17,12 +17,12 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class comment_dashboard_Core {
class comment_block_Core {
static function get_list() {
return array("recent_comments" => t("Recent Comments"));
}
static function get_block($block_id) {
static function get($block_id) {
$block = new Block();
switch ($block_id) {
case "recent_comments":
@@ -50,7 +50,7 @@ class comment_installer {
ENGINE=InnoDB DEFAULT CHARSET=utf8;");
dashboard::add_block("main", "comment", "recent_comments");
block_manager::add("dashboard_center", "comment", "recent_comments");
module::set_var("comment", "spam_caught", 0);
module::set_version("comment", 1);
}