| 1 |
<?php |
<?php |
| 2 |
// $Id: nd_cck.module,v 1.1.2.7 2009/09/26 11:46:11 swentel Exp $ |
// $Id: nd_cck.module,v 1.1.2.8 2009/09/26 17:45:53 swentel Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 58 |
} |
} |
| 59 |
|
|
| 60 |
/** |
/** |
| 61 |
* Implementation of hook_nd_fields(). |
* Implementation of hook_ds_fields(). |
| 62 |
*/ |
*/ |
| 63 |
function nd_cck_nd_fields($node_type, $has_body, $build_mode) { |
function nd_cck_ds_fields($type_name, $build_mode, $extra) { |
| 64 |
if (!empty($node_type)) { |
if (!empty($type_name)) { |
| 65 |
$type = content_types($node_type); |
$type = content_types($type_name); |
| 66 |
$field_types = _content_field_types(); |
$field_types = _content_field_types(); |
| 67 |
$fields = $type['fields']; |
$fields = $type['fields']; |
| 68 |
foreach ($fields as $field => $value) { |
foreach ($fields as $field => $value) { |