These are pretty much equivalent. The only difference is that the more verbose one is explicitly setting a label. Provided that the module you are changing has this label (in this case Tasks has a label ‘LBL_ASSIGNED_TO_NAME’) then it’s fine to change these. However if the views are working as you expect it’s fine to leave it alone also.
Thanks for explaining. I tried to append the following code to the Tasks module yet it doesn’t do what it’s supposed to do. Works well if I append it into the Contact module after the label, so I’m not sure why?
Tested this and was receiving the same results. This was because the arrays were missing one level so the displayParams weren’t getting picked up. Try the following (commented for clarity):
'LBL_PANEL_ASSIGNMENT' => array(//Start panel
array(//Start row
array(//Start assigned user item
'name'=>'assigned_user_name',
'label' => 'LBL_ASSIGNED_TO',
'displayParams' => array(
'hideButtons' => true,
),
),
array(),//Extra row item so that assigned user input sits nicely
)
),