Closed (fixed)
Project:
Panelizer (obsolete)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2012 at 13:02 UTC
Updated:
12 Dec 2012 at 21:40 UTC
After applying patch at #1659614: Views row style plugin does not seem to work and getting views row style to work I have been greeted with notices in style of
Notice: Undefined index: name in _views_create_handler() (line 62 of C:\wamp\www\maga\sites\all\modules\views\includes\handlers.inc).
. It looks like most of other handlers have 'name' key, but i don't see it in requirements at http://api.drupal.org/api/views/views.api.php/function/hook_views_plugins/7 (except in function/file name).
Since I'm not sure why 'name' is missing and what should be 'name', there is no patch, but notices goes away if I stick 'name' => 'panelizer' in hook_views_plugins_alter() array.
Comments
Comment #1
merlinofchaos commentedOrdinarily that 'name' is filled in automatically, but because we're using plugins_alter that doesn't actually happen. I'm not actually sure why we're using alter rather than plugins, but it does prevent Views from doing basic processing. The 'name' should match the key of the plugin, so just adding 'name' => 'panelizer_node_view' seems to be correct.
I've gone ahead and committed that.