finder_admin_import

Versions
6--1
finder_admin_import()

Admin finder import page.

Code

includes/finder.admin.inc, line 861

<?php
function finder_admin_import() {
  global $user;
  $output;
  if ($_POST['finder_code']) {
    $finder_code = trim($_POST['finder_code']);
    $import = finder_import($finder_code);
    if (is_array($import)) {
      foreach ($import as $finder) {
        $new_finder = finder_clone($finder);
        drupal_set_message(t("Imported !finder", array('!finder' => l(check_plain($new_finder->title), 'admin/build/finder/'. $new_finder->finder_id .'/edit'))));
      }
      drupal_goto('admin/build/finder');
    }
    else {
      $new_finder = finder_clone($import);
      drupal_set_message(t("Imported !finder", array('!finder' => l(check_plain($new_finder->title), 'admin/build/finder/'. $new_finder->finder_id .'/edit'))));
      drupal_goto('admin/build/finder/'. $new_finder->finder_id .'/edit');
    }
  }
  return drupal_get_form('finder_admin_import_form', $form);
}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Mollom CAPTCHA (play audio CAPTCHA)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.