You are here

function monolog_profile_export_form in Monolog 7

Same name and namespace in other branches
  1. 6 monolog.admin.inc \monolog_profile_export_form()

Export form for profile configurations.

1 string reference to 'monolog_profile_export_form'
monolog_menu in ./monolog.module
Implements hook_menu().

File

./monolog.admin.inc, line 529
Administrative settings for the Monolog module.

Code

function monolog_profile_export_form($form, &$form_state, stdClass $profile) {

  // Pop "Add Hander" link off, add profile link.
  $breadcrumb = drupal_get_breadcrumb();
  array_pop($breadcrumb);
  $breadcrumb[] = l($profile->options['label'], 'admin/config/development/monolog/profile/' . $profile->name);
  drupal_set_breadcrumb($breadcrumb);
  $form['back'] = array(
    '#type' => 'link',
    '#title' => t('Go back to logging profiles page'),
    '#href' => 'admin/config/development/monolog/profile',
  );

  // Add the export form.
  $title = t('Logging profile configuration');
  $export = ctools_export_crud_export('monolog_profile', $profile);
  $form = ctools_export_form($form, $form_state, $export, $title);
  return $form;
}