function apps_display_confirm_form in Apps 7
Verify's token or presents a confirm form.
5 calls to apps_display_confirm_form()
- apps_app_disable in ./
apps.pages.inc - Callback for app disable
- apps_app_enable in ./
apps.pages.inc - Callback for the enable action
- apps_app_install in ./
apps.pages.inc - Callback for app install TODO: check to see the app is install able and then install TODO: should goto config page but pass on the current destination NOTE: it is expected that this page would be called with a drupal desination set
- apps_app_uninstall in ./
apps.pages.inc - Callback for app uninstall
- apps_app_update in ./
apps.pages.inc - Callback for app update.
File
- ./
apps.pages.inc, line 24 - The page callbacks for the Apps module.
Code
function apps_display_confirm_form($question, $unique) {
// Can't easily pass query args to batch, so allow if install next is set to
// current page, as we set that.
if (isset($_SESSION['apps_install_next']) && $_SESSION['apps_install_next'] == $_GET['q'] || isset($_REQUEST['token']) && drupal_valid_token($_REQUEST['token'], $unique)) {
return FALSE;
}
else {
$path = array(
$_GET['q'],
array(
'query' => array(
'token' => drupal_get_token($unique),
),
),
);
return drupal_get_form('apps_confirm_form', $question, $path);
}
}