You are here

function tinybrowser_profile_delete_submit in TinyBrowser 7

Profile delete form submit

1 string reference to 'tinybrowser_profile_delete_submit'
tinybrowser_profile_delete_form in ./tinybrowser.module

File

./tinybrowser.module, line 963

Code

function tinybrowser_profile_delete_submit($form, &$form_state) {
  tinybrowser_update_profiles($form_state['values']['pid'], NULL);
  drupal_set_message(t('Profile has been deleted.'));
  $form_state['redirect'] = TB_CONFIG_PAGE;
}