// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;
// ノードの取得(もちろんエンティティ取得も可能)
$node = node_load( $nid );
// ノードのフィールドを取得する
$fivestar = field_view_field('node', $node, 'YOU_FIELD_NAME', 'basic');
// 取得したフィールドをレンダリングします
render( $fivestar );
// コンテンツ単位のFivestarでの評価結果
$values = array(
'average' => $value, // average vote
'user' => $value, // user vote
'count' => ($value)? 1 : 0, // number of voting
);
// Fivestarの評価操作ウィジェットの設定
$settings = array(
'content_type' => 'node', // content_type and entity_type 両方必要
'entity_type' => 'node', // content_typeと同じ設定
'entity_id' => $nid,
'content_id' => $nid,
'stars' => 5,
'field_name' => 'field_ch_word_momoria',
'autosubmit' => TRUE,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'langcode' => 'und',
'text' => 'none', // options are none, average, smart, user, and dual
'tag' => 'chinese_word',
'style' => 'user', // options are average, dual, smart, user
'widget' => array( 'name' => 'basic', 'css' => drupal_get_path('module', 'fivestar') . '/widgets/basic/basic.css' ),
);
return render( drupal_get_form('fivestar_custom_widget', $values, $settings) ) ;