You are here

function feedback_field_extra_fields in Feedback 7.2

Implements hook_field_extra_fields().

File

./feedback.module, line 163
Allows site visitors and users to report issues about this site.

Code

function feedback_field_extra_fields() {
  $extras['feedback']['feedback']['form']['help'] = array(
    'label' => t('Help'),
    'description' => t('Feedback submission guidelines'),
    'weight' => -10,
  );
  $extras['feedback']['feedback']['form']['messages'] = array(
    'label' => t('Entries'),
    'description' => t('Existing feedback entries for the current page'),
    'weight' => -5,
  );
  $extras['feedback']['feedback']['form']['message'] = array(
    'label' => t('Message'),
    'description' => t('Feedback message form text field'),
    'weight' => 0,
  );
  $extras['feedback']['feedback']['display']['location'] = array(
    'label' => t('Location'),
    'description' => t('The URL of the page the message was submitted on'),
    'weight' => -15,
  );
  $extras['feedback']['feedback']['display']['date'] = array(
    'label' => t('Date'),
    'description' => t('The submission date of the message'),
    'weight' => -10,
  );
  $extras['feedback']['feedback']['display']['user'] = array(
    'label' => t('User'),
    'description' => t('The name of the user who submitted the message'),
    'weight' => -5,
  );
  $extras['feedback']['feedback']['display']['message'] = array(
    'label' => t('Message'),
    'description' => t('The main feedback message'),
    'weight' => 0,
  );
  return $extras;
}