You are here

function homebox_export_form in Homebox 7.2

Same name and namespace in other branches
  1. 6.3 homebox.admin.inc \homebox_export_form()
  2. 6.2 homebox.admin.inc \homebox_export_form()
  3. 7.3 homebox.admin.inc \homebox_export_form()

Generate a page export form

1 string reference to 'homebox_export_form'
homebox_menu in ./homebox.module
Implements hook_menu().

File

./homebox.admin.inc, line 416
Homebox admin file, takes care admin interface for homebox

Code

function homebox_export_form($form, &$form_state, $page) {
  $code = '$homebox = new stdClass;' . "\n";
  $code .= '$homebox->name = \'' . $page->name . '\';' . "\n";
  $code .= '$homebox->settings = ' . var_export($page->settings, TRUE) . ';';
  $form['export'] = array(
    '#title' => check_plain($page->name),
    '#type' => 'textarea',
    '#rows' => 30,
    '#value' => $code,
  );
  return $form;
}