I'm juststarted with drupal and i want to create module for managing data in my custom database tables.
For example, i need to have three pages:
1) list of my subscribers
2) editing subscriber
3) adding subscriber

so, i need three pages for this:

the question is:
do i need to create three Basic pages with such aliases in admin and use specific templates files for each page to manage data? or how to do it properly?

  • Drupal already provides add/edit functionality for content, is there a specific reason for overriding that?
    – Geoff
    Jun 25, 2015 at 16:43

1 Answer 1


Using hook_menu() should get you the the ability to create those three pages. Then you can use the page_callback to display the data you are looking to show. For the subscribers/id, you can use %id and then have pass the argument to the page_callback. Using the db_query(), db_update(), db_select() functions in drupal, you'll be able to add the custom processing of the database.

If you are creating your own module you can use theme functions to decide how the page and that data will display.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.