Commit c8e46b0d authored by Steven Wittens's avatar Steven Wittens
Browse files

Changed the description for the types field when adding a collection. Instead...

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.
parent 6d4f610d
......@@ -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
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment