It appears that ctools_edit_argument_form_submit always passes an empty array of settings to the settings callback because it is looking in the wrong place for its settings. Psuedo patch:

  if (!isset($form_state['values']['argument_settings'])) {
    $form_state['values']['argument_settings'] = array();
  }

  if (isset($argument['settings form submit']) && function_exists($argument['settings form submit'])) {
    $argument['settings form submit']($form, $form_state['values']['argument_settings'], $form_state);
  }

To:

  if (!isset($form_state['values']['argument']['argument_settings'])) {
    $form_state['values']['argument']['argument_settings'] = array();
  }

  if (isset($argument['settings form submit']) && function_exists($argument['settings form submit'])) {
    $argument['settings form submit']($form, $form_state['values']['argument']['argument_settings'], $form_state);
  }

Comments

neclimdul’s picture

BTW, found this in the D7 update and don't actually have a location this shows up or is testable but it definitely does not match the form definition.

merlinofchaos’s picture

I don't think this code is actually in use at this time, though, as arguments now have a different UI. I think this code is cruft.

Ashlar’s picture

Status: Active » Closed (won't fix)

This bug report has not been active for over six months. In an effort to clean-up the issue queue this item has been closed. If your modules are current and the report is still relevant please feel free to change the Status back to active.