summaryrefslogtreecommitdiff
path: root/core/helpers/theme.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-12 07:50:04 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-12 07:50:04 +0000
commitae73ef3d5743b2afba65db7d89e78b135d8c9090 (patch)
tree52faf725a5756933a0547b2ea908a6d05051b1e4 /core/helpers/theme.php
parentb19729435cd918e03e1bd6fbb91f7281bf3e5873 (diff)
Updated for new Form_Submit API.
OLD: $form->submit("Foo") --> <input type="submit" value="Foo"> New: $form->submit("foo_button")->("Foo") --> <input type="submit" name="foo_button" value="Foo"> Mostly we don't care what the button is so we leave the name blank.
Diffstat (limited to 'core/helpers/theme.php')
-rw-r--r--core/helpers/theme.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/helpers/theme.php b/core/helpers/theme.php
index fac2de33..8f977e0c 100644
--- a/core/helpers/theme.php
+++ b/core/helpers/theme.php
@@ -37,7 +37,7 @@ class theme_Core {
}
Kohana::config_set('core.modules', $modules);
}
-
+
public static function get_edit_form_admin($theme) {
$form = new Forge("admin/themes/edit/{$theme->id}",
'', null, array("id" =>"gThemeDetailsForm"));
@@ -51,15 +51,15 @@ class theme_Core {
$group->input("resize_size")->label(t("Resized image size (in pixels)"))->id("gResizeSize")->
rules('required|valid_digit')->
value(self::get_var($theme->id, "resize_size", 600));
- $group->submit(t("Modify Theme"));
+ $group->submit("")->value(t("Modify Theme"));
return $form;
}
-
+
public static function get_edit_form_content($theme_name) {
- $file = THEMEPATH . $theme_name . "/theme.info";
- $theme_info = new ArrayObject(parse_ini_file($file), ArrayObject::ARRAY_AS_PROPS);
+ $file = THEMEPATH . $theme_name . "/theme.info";
+ $theme_info = new ArrayObject(parse_ini_file($file), ArrayObject::ARRAY_AS_PROPS);
}
-
+
public static function get_var($theme_id, $name, $default_value = null) {
return module::get_var($theme_id, $name, module::get_var("core", $name, $default_value));
}