external module question..

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
adnasa's picture

Hey guys

I've built an external (mini-)module with the help of this page: http://views-help.doc.logrus.com/help/views/api

using the views_api(),
with this module I only wanted to introduce new tables and fields to the views module, view type "Node".

Right now it looks good to me, but I still have this gut feeling telling me that I should ask you guys the following question...
– how do I ensure that this module is 'safe' ?
– so far I've included the views_api(), views_handlers() and views_data()? is there another method I need to include?

please keep in mind that this is the very first time I built the module, so be nice.

Thanks in advance.

Comments

No the three hooks should be

dawehner's picture

No the three hooks should be enough for you if you have your own custom handlers. If you don't have them you can drop views_handlers.

The one caveat is that if

merlinofchaos's picture

The one caveat is that if you're trying to add fields to $data['node'] you should use hook_views_data_alter() for that.

thank you

adnasa's picture

@dereine, @merlinofchaos: thanks for the help guys, appreciate it.

@merlinofchaos: yes your right, but no I'm not trying to add new fields to @data['node'].

Thanks!
/A

YEAH, BABY!

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: