1

Trying to find a way to get the value of the checkbox "Show end date" on a date field on drupal 7.

Is it stored somewhere in the database? Can't find it. Its definitely not in the $node object.

Any ideas?

0

It's stored against the field settings in the field_config table. You can get access to it through the API with field_info_field()

$field_info = field_info_field('field_name');
$to_date_setting = $field_info['settings']['todate']; // optional, required, etc
  • 1
    Unfortunately this does not answer my question because this only returns the field set up on the site wide configuration and not the specific selection of the "Show end date" check box on the node. – Pedro Gonçalves Jun 7 '13 at 23:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.