[development] Views field handler being ignored
jeff at ayendesigns.com
jeff at ayendesigns.com
Mon Oct 18 04:46:53 UTC 2010
Definitely. That occurred to me between the two messages. I might need to reinstall the module, as I changed a file name? Also, does it matter that my test changes the option form text, not the render? Its the form that hasn't changed yet.
Ayen Designs - quality software the first time, every time!
-----Original Message-----
From: Earl Miles <merlin at logrus.com>
Sender: development-bounces at drupal.org
Date: Sun, 17 Oct 2010 21:41:32
To: <development at drupal.org>
Reply-To: development at drupal.org
Subject: Re: [development] Views field handler being ignored
On 10/17/2010 7:45 PM, jeff at ayendesigns.com wrote:
> 3. my_views.inc is the same as node_views.inc except
> the function names are changed from node_views to my_views
> in my_views_handlers() the handler for field node is changed to
> my_handler_field_node
> in $data['node']['title'] the handler name is changed to
> my_handler_field_node
What happens when both 'node' and your 'myviews' return $data['node'].
When you look at $data['node'] which do you get?
This is why you must use hook_views_data_alter() to modify tables owned
by other modules rather than hook_views_data(), otherwise you get
undefined results when PHP tries to figure out which one of you wins the
collision.
More information about the development
mailing list