function timeline_bookmark_delete_confirm_submit in MediaFront 7.2
The confirmation delete.
_state
Parameters
type $form:
File
- modules/
timeline_bookmark/ timeline_bookmark.module, line 286
Code
function timeline_bookmark_delete_confirm_submit($form, &$form_state) {
// Get our variables.
$account = $form_state['values']['account'];
$bookmark = $form_state['values']['bookmark'];
// Make sure we can delete.
if (timeline_bookmark_delete_check($account, $bookmark)) {
// Delete the bookmark.
if (timeline_bookmark_delete($bookmark)) {
// Say we deleted the bookmark.
drupal_set_message("Bookmark deleted.");
}
}
}