I'm looking at date_api_ical_build_rrule() and wondering if in this:

 if ($form_values['UNTIL']['datetime']) {
        $RRULE .= ';UNTIL='. date_convert($form_values['UNTIL']['datetime'], DATE_DATETIME, DATE_ICAL);
  }

Should DATE_DATETIME be DATE_ARRAY ? Because I'm getting an array in $form_values['UNTIL']['datetime'] ...

Or am I doing something wrong? Is there any documentation for how to properly use the date_repeat_rrule element in modules? I've just been trying to figure it out by looking at the code, and it's proving difficult.

My Form looks like this:

    $form['testdate']['thedate'] = array(
        '#type' => 'date_select',
        '#date_format' => 'm/d/Y',
        '#title' => t('Start Date'),       
        '#default_value' => '2008-02-02 02:02:02',
        '#tree' => TRUE,        
    );

    
    
    $form['testdate']['rrule'] = array(
        '#type' => 'date_repeat_rrule',
        '#title' => t('Date Repeat Pattern'),       
        '#default_value' => variable_get('rrule', ''),
        '#tree' => TRUE,        
    );
    
    
    
    $form['array_filter'] = array('#type' => 'hidden');
    return system_settings_form($form);

Comments

matt2000’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

This was actually caused in part by a mistake in some troubleshooting code I added.

The generalized problem is here: http://drupal.org/node/256046

karens’s picture

Is there still an issue here? The linked issue is closed now and I can't figure out exactly what the question is.

karens’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No response, assuming fixed.