You are here

function forward_ds_field_create in Forward 7.2

Same name and namespace in other branches
  1. 7.3 forward.module \forward_ds_field_create()

Callback for Display Suite field.

1 string reference to 'forward_ds_field_create'
forward_ds_fields_info in ./forward.module
Implements hook_ds_fields_info().

File

./forward.module, line 179

Code

function forward_ds_field_create($field) {
  $output = '';
  if (user_access('access forward')) {
    $node = $field['entity'];
    if (variable_get('forward_display_' . $node->type, 1)) {
      $output = theme('forward_link', array(
        'node' => $node,
      ));
    }
  }
  return $output;
}