Index: taxonomy.module =================================================================== RCS file: /var/cvs/CookingTheNet/modules/taxonomy.module,v retrieving revision 1.8 diff -u -r1.8 taxonomy.module --- taxonomy.module 30 Jan 2005 12:46:42 -0000 1.8 +++ taxonomy.module 30 Jan 2005 15:51:39 -0000 @@ -122,6 +122,8 @@ } $form .= form_textfield(t('Vocabulary name'), 'name', $edit['name'], 50, 64, t('The name for this vocabulary. Example: "Topic".'), NULL, TRUE); + // Prepend extra vocabulary form elements. + $form .= implode('', module_invoke_all('taxonomy','form pre', 'vocabulary',$edit)); $form .= form_textarea(t('Description'), 'description', $edit['description'], 60, 5, t('Description of the vocabulary; can be used by modules.')); $form .= form_textfield(t('Help text'), 'help', $edit['help'], 50, 255, t('Instructions to present to the user when choosing a term.')); $form .= form_checkboxes(t('Types'), 'nodes', $edit['nodes'], $nodes, t('A list of node types you want to associate with this vocabulary.'), NULL, TRUE); @@ -208,6 +210,8 @@ $vocabulary = taxonomy_get_vocabulary($vocabulary_id); $form = form_textfield(t('Term name'), 'name', $edit['name'], 50, 64, t('The name for this term. Example: "Linux".'), NULL, TRUE); + // Prepend extra term form elements. + $form .= implode('', module_invoke_all('taxonomy','form pre', 'term',$edit)); $form .= form_textarea(t('Description'), 'description', $edit['description'], 60, 5, t('A description of the term.')); if ($vocabulary->hierarchy) {