summaryrefslogtreecommitdiff
path: root/core/helpers/core_block.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-01-24 17:26:47 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-01-24 17:26:47 +0000
commitcbff78daa8a642e1800916f92e43202857c3b677 (patch)
tree1cb8302d4da07fbb384d44d94644088c718c6339 /core/helpers/core_block.php
parenteed57674f99621e5354a13543067e9556eb9c6d0 (diff)
Supply a form id on all forms. This id can be used by modules other
than the originating module to provide additional functionality to the form.
Diffstat (limited to 'core/helpers/core_block.php')
-rw-r--r--core/helpers/core_block.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php
index af08c2c2..1645133c 100644
--- a/core/helpers/core_block.php
+++ b/core/helpers/core_block.php
@@ -83,7 +83,8 @@ class core_block_Core {
}
static function get_add_block_form() {
- $form = new Forge("admin/dashboard/add_block", "", "post");
+ $form = new Forge("admin/dashboard/add_block", "", "post",
+ array("id" => "gAdd_Dashboard_Block_Form"));
$group = $form->group("add_block")->label(t("Add Block"));
$group->dropdown("id")->label("Available Blocks")->options(block_manager::get_available());
$group->submit("center")->value(t("Add to center"));