| 1 |
<?php |
<?php |
| 2 |
// $Id: nd_fivestar.module,v 1.1.2.7 2009/09/26 18:52:43 swentel Exp $ |
// $Id: nd_fivestar.module,v 1.1.2.8 2009/09/29 17:09:02 swentel Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 7 |
*/ |
*/ |
| 8 |
|
|
| 9 |
/** |
/** |
| 10 |
* Implementation of hook_nd_fields(). |
* Implementation of hook_ds_fields(). |
| 11 |
*/ |
*/ |
| 12 |
function nd_fivestar_nd_fields($node_type, $has_body, $build_mode) { |
function nd_fivestar_ds_fields($type_name, $build_mode, $extra) { |
| 13 |
if (variable_get('nd_fivestar_'. $node_type, 0)) { |
if (variable_get('nd_fivestar_'. $type_name, 0)) { |
| 14 |
return array( |
return array( |
| 15 |
'fivestar_widget' => array( |
'fivestar_widget' => array( |
| 16 |
'title' => t('Fivestar'), |
'title' => t('Fivestar'), |