| 1 |
<?php |
<?php |
| 2 |
// $Id: nodeprofile.module,v 1.7.2.32 2008/01/03 21:32:56 fago Exp $ |
// $Id: nodeprofile.module,v 1.7.2.33 2008/02/04 11:29:32 fago Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 528 |
$form[$type]['form'] = array( |
$form[$type]['form'] = array( |
| 529 |
'#type' => 'subform', |
'#type' => 'subform', |
| 530 |
'#id' => $type. '_node_form', |
'#id' => $type. '_node_form', |
| 531 |
'#data_separation' => FALSE, |
//data separation should be set to FALSE, so that imagefield works (see #201804), |
| 532 |
|
//but without data separation adding new users as admin won't worky any more (see #207802), |
| 533 |
|
//so we turn it on for the admin's "Add user" page only. |
| 534 |
|
'#data_separation' => (arg(0) == 'admin' && arg(2) == 'user'), |
| 535 |
'#arguments' => array($node), |
'#arguments' => array($node), |
| 536 |
'#subform_after_build' => array('nodeprofile_integration_adapt_node_form'), |
'#subform_after_build' => array('nodeprofile_integration_adapt_node_form'), |
| 537 |
); |
); |