summaryrefslogtreecommitdiff
path: root/modules/index.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/index.module')
-rw-r--r--modules/index.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/index.module b/modules/index.module
index 592eca038..0d06a7b22 100644
--- a/modules/index.module
+++ b/modules/index.module
@@ -7,13 +7,13 @@ function index_get_array($id) {
return db_fetch_array(db_query("SELECT * FROM entry WHERE eid = '". check_input($id) ."'"));
}
-function index_collection_form($name) {
+function index_collection_form($name, $selected = "") {
$result = db_query("SELECT * FROM entry WHERE collection = '$name'");
while ($entry = db_fetch_object($result)) {
$options[$entry->keyword] = $entry->name;
}
- return form_select($name, $name, "", $options);
+ return form_select(ucfirst($name), $name, $selected, $options);
}
function index_collection_link($name) {