Voila, but not without some weirdness.

In the code I posted yesterday, you might notice I have the hook_views_handlers appearing twice, in the .modules file and in the views.inc file. Of course, both cannot be active at the same time. The interesting thing is that the occurrence in the .module file implements the hook in the same way that it is in the code being overridden. That doesn't work. The occurrence in the views.inc file does work.

sites/all/modules/my/my.info

sites/all/modules/my/my.module
...
function my_views_handlers() {
  return array(
      'my_handler_field_node');
}

sites/all/modules/my/my.views.inc
function my_views_handlers() {
  return array(
    'handlers' => array(
      'my_handler_field_node' => array(
        'parent' => 'views_handler_field_node',
      ),
    ),
  );
}


Reply via email to