Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
rafuel92 CreditAttribution: rafuel92 commentedComment #2
rafuel92 CreditAttribution: rafuel92 commentedComment #3
rafuel92 CreditAttribution: rafuel92 commentedComment #4
rimu CreditAttribution: rimu commentedIf you have customised homebox.tpl.php then ensure that it still contains
It seems like that variable contains some ajax/js that is necessary to save the changes users make.
Comment #5
Anybody