You are here

function apachesolr_search_clone_search_page_confirm in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr_search.admin.inc \apachesolr_search_clone_search_page_confirm()
  2. 6.3 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 616
Administrative settings for searching.

Code

function apachesolr_search_clone_search_page_confirm($form, &$form_state, $search_page) {
  $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/config/search/apachesolr', '', t('Clone'), t('Cancel'));
}