1

Please see the attached image below. I need to get the highlighted value via PHP and put it into one of my templates. I'm not exactly sure how this works, but this text is created as part of an entityform .

Drupal Themer Info

Expedito
  • 7,771
  • 5
  • 30
  • 43
Dustin
  • 4,314
  • 12
  • 53
  • 91
  • I've tried a few combinations like this which is how I'd grab a normal field value.. `$entity->field_title[$entity->language]['value'];` `$node->field_title[$node->language]['value'];` – Dustin Oct 10 '12 at 13:30

1 Answers1

0

You need to implement hook_form_alter in order to access a form element. Kindly read the documentation about how to use it.

Then, you can access the field like that:

$value = $form[YOUR_FIELD]['#items'][0]['value'];

Hope this works... Muhammad.

Muhammad Reda
  • 26,379
  • 14
  • 93
  • 105