You are here

function breakpoints_admin_breakpoint_export_form in Breakpoints 7

Export a breakpoint.

1 string reference to 'breakpoints_admin_breakpoint_export_form'
breakpoints_admin_breakpoint_actions_form in ./breakpoints.admin.inc
Admin action form: enable, disable, delete, export

File

./breakpoints.admin.inc, line 969
Breakpoints - admin settings

Code

function breakpoints_admin_breakpoint_export_form($form, $form_state, $fullkey) {

  // Create the export code textarea.
  ctools_include('export');
  $breakpoint = breakpoints_breakpoint_load_by_fullkey($fullkey);
  if (!$breakpoint) {
    $breakpoint = new stdClass();
  }
  $export = ctools_export_object('breakpoints', $breakpoint);
  $form['export'] = array(
    '#type' => 'textarea',
    '#title' => t('Breakpoint code'),
    '#rows' => 20,
    '#default_value' => $export,
  );
  return $form;
}