From c8e46b0d2cba12918df1ef580c2b4d1aa9967b76 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sat, 10 Nov 2001 01:43:34 +0000 Subject: Changed the description for the types field when adding a collection. Instead of an example list, it shows an actual list of the available nodetypes. --- modules/meta.module | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/meta.module') diff --git a/modules/meta.module b/modules/meta.module index 3fe7e78b4..e29e52474 100644 --- a/modules/meta.module +++ b/modules/meta.module @@ -61,9 +61,14 @@ function meta_get_tag($tid) { } function meta_form_collection($edit = array()) { + foreach (module_list() as $name) { + if (module_hook($name, "node")) { + $nodetypes[] = $name; + } + } $form .= form_textfield("Collection name", "name", $edit[name], 50, 64, "Required. The name for this group or collection of meta-tags. Example: 'Software'."); - $form .= form_textfield("Types", "types", $edit[types], 50, 64, "Required. A comma-seperated list of node types you want to associate this collection with. Example: 'story, book'."); + $form .= form_textfield("Types", "types", $edit[types], 50, 64, "Required. A comma-seperated list of node types you want to associate this collection with. Available types: " . implode(", ", $nodetypes) . "."); $form .= form_submit("Submit"); if ($edit[cid]) { @@ -191,4 +196,4 @@ function meta_admin() { } } -?> \ No newline at end of file +?> -- cgit v1.2.3