You are here

function vud_node_content_extra_fields in Vote Up/Down 7

Same name and namespace in other branches
  1. 6.3 vud_node/vud_node.module \vud_node_content_extra_fields()
  2. 6.2 vud_node/vud_node.module \vud_node_content_extra_fields()

Implementation of hook_content_extra_fields().

File

vud_node/vud_node.module, line 359
Adds a voting widget to nodes.

Code

function vud_node_content_extra_fields($type_name) {
  if (in_array($type_name, variable_get('vud_node_types', array()), TRUE)) {
    $extra = array();
    $extra['vud_node_widget_display'] = array(
      'label' => t('Vote Up/Down on nodes'),
      'description' => t('Vote Up/Down module widget.'),
      'weight' => -10,
    );
    return $extra;
  }
}