function fb_admin_application_delete_form in Drupal for Facebook 7.4
Form creator -- ask for confirmation of deletion
1 string reference to 'fb_admin_application_delete_form'
File
- ./
fb.admin.inc, line 1095
Code
function fb_admin_application_delete_form($form, &$form_state, $fb_app) {
$form['fb_admin_description'] = array(
'#markup' => t('This will delete all local settings and access tokens associated with the facebook application %title. The application will <strong>not</strong> be deleted from facebook.com.', array(
'%title' => fb_get_name($fb_app),
)),
'#prefix' => '<p>',
'#suffix' => '</p>',
);
// This is $fb_app from fb_graph() call, not from local database. It has 'id' field, not 'fba'.
$form['#fb_app'] = $fb_app;
return confirm_form($form, t('Are you sure you want to delete %title?', array(
'%title' => fb_get_name($fb_app),
)), isset($_GET['destination']) ? $_GET['destination'] : FB_PATH_ADMIN_APPS . '/' . $fb_app['id'] . '/edit', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}