summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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
+?>