Creating a view for data I've stored with hook_form+db_insert. How?
Right...I'm a Drupal newbie - a frustrated one...
One of the first things I did was to create my own module "Advertiser.module" with a form to create an Advertiser: ID, name, address etc. Works fine and I store the data in the DB using db_insert
Now, if I want to create a "View" for this data, how would I do that? I see that I can create views for files, users, content etc., but how do I create a view for something in the DB?
What am I missing? Hope someone can point me in the right direction.
Hi,
In Drupal 7 you can use yourmodule(hook)_views_data in a module.
http://api.drupal.org/api/views/views.api.php/function/hook_views_data/7
You need to enable the yourmodule(hook)_views_api where you can do a lot of thing including running your own views from a module or template!