How to make drupal known submitting custom content

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2010-05-08T15:17:04Z Indexed on 2010/05/08 15:38 UTC
Read the original article Hit count: 242

Filed under:
|
|
|
|

Hi,
I know this is not a drupal forum but, as I’m not getting any response there, I decided to give it a shot here.

I’m creating a web site that accepts custom content from users. So, for that matter, this site has a form and a custom module. Instead of using admin theme, this form is placed inside custom template which is created to have a uniform look with the rest of the pages. As a result, creating form elements through hook_form is out of question. Here’s where my problems lie. As this form uses custom theme, I’m not sure as to what can I do to make drupal know that user is submitting new content data when the form is submitted?

  • Would I need to use same query string that of content submission page of admin page like - ?q=node/add/page for action attribute of the html form? (OR)

  • the only way is to map the url to my custom function and invoke some sort of hook inside of it?

Thanks

© Stack Overflow or respective owner

Related posts about drupal

Related posts about custom