summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2001-11-10 01:43:34 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2001-11-10 01:43:34 +0000
commitc8e46b0d2cba12918df1ef580c2b4d1aa9967b76 (patch)
treed74cc29d4cd9351a6b4a520816f3994184349b94
parent6d4f610d9f75d47ea0145c21d4f1cec58fbc0e7c (diff)
downloadbrdo-c8e46b0d2cba12918df1ef580c2b4d1aa9967b76.tar.gz
brdo-c8e46b0d2cba12918df1ef580c2b4d1aa9967b76.tar.bz2
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.
-rw-r--r--modules/meta.module9
1 files changed, 7 insertions, 2 deletions
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
+?>