You are here

function apachesolr_search_clone_search_page_confirm in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr_search.admin.inc \apachesolr_search_clone_search_page_confirm()
  2. 7 apachesolr_search.admin.inc \apachesolr_search_clone_search_page_confirm()

Clones a single search page configuration

Parameters

$search_page: The search page that needs to be cloned

1 string reference to 'apachesolr_search_clone_search_page_confirm'
apachesolr_search_menu in ./apachesolr_search.module
Implements hook_menu().

File

./apachesolr_search.admin.inc, line 655
Administrative settings for searching.

Code

function apachesolr_search_clone_search_page_confirm(&$form_state, $search_page) {
  $form = array();
  $form['page_id'] = array(
    '#type' => 'value',
    '#value' => $search_page['page_id'],
  );
  return confirm_form($form, t('Are you sure you want to clone search page %name?', array(
    '%name' => $search_page['label'],
  )), 'admin/settings/apachesolr', '', t('Clone'), t('Cancel'));
}