Active
Project:
CCK Button
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
1 Jul 2008 at 08:53 UTC
Updated:
1 Jul 2008 at 08:53 UTC
How can I disable cck button in node edit ?
I inserted code
if($form_id == 'page_node_form') {
$form[field_gmap_button] = array(
'#type' => 'hidden'
);
}
and remove button in node edit but in node view too and get error
warning: Invalid argument supplied for foreach() in C:\www\...sites\all\modules\cck\content.module on line 450.