You are here

function homebox_save_form in Homebox 6.2

Same name and namespace in other branches
  1. 6.3 homebox.module \homebox_save_form()
  2. 7.3 homebox.module \homebox_save_form()
  3. 7.2 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 421
Homebox main file, takes care of global functions settings constants, etc.

Code

function homebox_save_form($form_state, $page) {
  $form = array();
  $form['blocks'] = array(
    '#type' => 'hidden',
  );
  $form['messages'] = array(
    '#value' => '<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>',
  );
  $form['save'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
    '#ahah' => array(
      'path' => 'homebox/js/' . $page->name . '/save',
      'event' => 'click',
    ),
  );
  return $form;
}