function sbp_paths_delete_confirm in Search by Page 6
Same name and namespace in other branches
- 7 sbp_paths.module \sbp_paths_delete_confirm()
Returns a form confirming deletion a path to be indexed.
See also
sbp_paths_delete_confirm_submit()
1 string reference to 'sbp_paths_delete_confirm'
- sbp_paths_menu in ./
sbp_paths.module - Implementation of hook_menu().
File
- ./
sbp_paths.module, line 465 - Module file for Search by Page Paths, a sub-module for Search by Page.
Code
function sbp_paths_delete_confirm(&$form_state, $environment, $pid) {
$res = db_query('SELECT p.page_path FROM {sbpp_path} p WHERE p.pid = %d', $pid);
$item = db_fetch_object($res);
$environment = intval($environment);
$form = array(
'pid' => array(
'#type' => 'value',
'#value' => $pid,
),
'environment' => array(
'#type' => 'value',
'#value' => $environment,
),
);
$output = confirm_form($form, t('Are you sure you want to stop indexing %path in this environment?', array(
'%path' => $item->page_path,
)), 'admin/settings/search_by_page/edit/' . $environment . '/paths');
return $output;
}