Hi,

I'm surprised to find myself quite far along in developing my module but I've run up on a couple of questions.

I'd like to have the taxonomy controls as they appear in the story form, but it's not clear to me the simplest way to do it. I'm only looking to use the taxonomy terms as it appears and functions when one creates a story.

My other issue is I need to insert some data in votingapi and I can't quite figure out how to do it when an author finishes a story and hits the submit button. I know the votingapi line looks like:

votingapi_add_vote('node', $nid, $value, 'percent', 'vote', $uid);

But I don't know how to execute that when the author hits 'submit.' Again, I'm sure it's pretty simple, I just haven't found it yet.

Comments

nevets’s picture

If you are creating a custom content type and want to use a particular vocabulary with it you can assign the vocabulary to your new content type and it will then appear when adding/updating your content type.

mpapet’s picture

you can assign the vocabulary to your new content type

That's more or less missing the point. I want the form I create to include the exact same Taxonomy controls that appear in the "Create Content>Story" form. I have no way of adding anything like that if I attempt to modify the content type via the Drupal GUI.

Perhaps an easier way to attack my problem may be asking where I would find some sample code that simply reproduces the taxonomy dialog boxes as they appear in "Create Content>Story?"