Hello

I submitted a similar request as part of another issue but I thought I would break the request into a separate discussion.

http://drupal.org/node/618478

I was wondering if some one can document how to use the hook_views_data_alter hook. I have not found any samples yet on the structure of implementation of the hooks and it appears to be a solution to my problem. While I appreciate the help so far, the sample provided in the other post does not provide enough information for me to complete.

I promise to post my findings for the rest of the group for the future..

Any help is appreciated.

Thanks,
G

Comments

dawehner’s picture

There is for example http://drupal.org/node/386186

But you can also grep for views_data_alter

dagmar’s picture

Here is another example http://drupal.org/node/337348#comment-1527696 I have used this hook to modify the default handler to manage taxonomy terms filters.

It would be nice that you wrote the documentation as a patch for advanced help. We need people that speak English natively to this kind of tasks :)

gsvitak’s picture

Thank you for the help. I am making some progress but I have one more follow up question. I am trying to modify the SQL statement to eliminate the normal db_write implemented in views_plugin_query_default. Do you have a sample that implements the alter hook and the plugin interface?

Thanks
G

esmerel’s picture

Status: Active » Closed (fixed)

No activity for 6 months