You are here

function monolog_profile_import_form in Monolog 6

Same name and namespace in other branches
  1. 7 monolog.admin.inc \monolog_profile_import_form()

Import form for profile configurations.

See also

monolog_profile_import_form_validate()

monolog_profile_import_form_submit()

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

File

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

Code

function monolog_profile_import_form($form, &$form_state) {
  ctools_include('export');
  $form['profile'] = array(
    '#type' => 'value',
    '#value' => '',
  );
  $form['import'] = array(
    '#title' => t('Logging profile configuration code'),
    '#type' => 'textarea',
    '#rows' => 10,
    '#required' => TRUE,
  );
  $form['overwrite'] = array(
    '#title' => t('Allow import to overwrite an existing logging profile configuration.'),
    '#type' => 'checkbox',
  );
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Import configuration'),
  );
  $form['actions']['cancel'] = array(
    '#type' => 'link',
    '#title' => t('Go back to logging profiles page'),
    '#href' => 'admin/config/development/monolog/profile',
  );
  $form['#validate'] = array(
    'monolog_profile_import_form_validate',
  );
  $form['#submit'] = array(
    'monolog_profile_import_form_submit',
  );
  return $form;
}