function timeline_bookmark_delete_confirm in MediaFront 7.2
Confirmation page for the timeline bookmark delete.
Parameters
type $bookmark:
Return value
boolean
1 string reference to 'timeline_bookmark_delete_confirm'
- timeline_bookmark_menu in modules/
timeline_bookmark/ timeline_bookmark.module - Implements hook_menu().
File
- modules/
timeline_bookmark/ timeline_bookmark.module, line 251
Code
function timeline_bookmark_delete_confirm($form, $form_state, $account, $entity_type, $entity_id, $mediatime) {
// Search for their bookmark.
if ($bookmark = timeline_bookmark_search($account, $entity_type, $entity_id, $mediatime)) {
// Make sure we can delete.
if (timeline_bookmark_delete_check($account, $bookmark)) {
// Setup the form.
$form = array(
'bookmark' => array(
'#type' => 'value',
'#value' => $bookmark,
),
'account' => array(
'#type' => 'value',
'#value' => $account,
),
);
// Setup the question to ask.
$question = "Are you sure you want to delete this bookmark?";
// Get the destination.
$dest = drupal_get_destination();
// Return the confirm form.
return confirm_form($form, $question, $dest['destination']);
}
}
// Don't think so...
return drupal_access_denied();
}