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.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
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_info_field('field_name'); $to_date_setting = $field_info['settings']['todate']; // optional, required, etc