function homebox_save_form in Homebox 7.2
Same name and namespace in other branches
- 6.3 homebox.module \homebox_save_form()
- 6.2 homebox.module \homebox_save_form()
- 7.3 homebox.module \homebox_save_form()
2 string references to 'homebox_save_form'
- homebox_build in ./
homebox.module - Responsible for firing the hook_theme().
- homebox_js_save_user_settings in ./
homebox.module - Javascript callback
File
- ./
homebox.module, line 497 - Homebox main file, takes care of global functions settings constants, etc.
Code
function homebox_save_form($form, &$form_state, $page) {
$form = array();
$form['blocks'] = array(
'#type' => 'hidden',
);
$form['page'] = array(
'#type' => 'value',
'#value' => $page->name,
);
$form['save'] = array(
'#type' => 'submit',
'#value' => t('Save'),
'#ajax' => array(
'callback' => 'homebox/js/' . $page->name . '/save',
'event' => 'click',
),
);
$form['messages'] = array(
'#markup' => '<span id="homebox-minimize-to-save" class="homebox-msg">' . t('Minimize to save') . '</span>' . '<span id="homebox-changes-made" class="homebox-msg">' . t('Unsaved') . '</span>',
);
return $form;
}