Hi, first of all thank you for the module, i'm trying to use it, but in my case users are unable to save layout status, layout never changes and $form_state['values']['blocks'] is always empty!

function homebox_save_form_submit($form, &$form_state) {
  parse_str($form_state['values']['blocks'], $blocks);
  dpm($form_state['values']['blocks']); // THIS VARIABLE IS ALWAYS EMPTY!!
  foreach ($blocks as $key => $value) {
    parse_str($value, $block);
    $blocks[$key] = $block;
  }
  _homebox_save_user_settings($form_state['values']['page'], $blocks);
}

i've created only a simple homebox page with three blocks "powered by drupal","logo" and "who's online".

thanks in advice

Comments

rafuel92’s picture

Issue summary: View changes
rafuel92’s picture

Issue summary: View changes
rafuel92’s picture

Issue summary: View changes
rimu’s picture

If you have customised homebox.tpl.php then ensure that it still contains

print $save_form;

It seems like that variable contains some ajax/js that is necessary to save the changes users make.

Anybody’s picture

Status: Active » Closed (cannot reproduce)