function tinybrowser_profile_submit in TinyBrowser 7
Profile form submit
1 string reference to 'tinybrowser_profile_submit'
File
- ./
tinybrowser.module, line 926
Code
function tinybrowser_profile_submit($form, &$form_state) {
$profile = $form_state['values']['profile'];
$pid = $form_state['values']['pid'];
$message = $pid > 0 ? t('The changes have been saved.') : t('Profile has been added.');
$pid = tinybrowser_update_profiles($pid, $profile);
drupal_set_message($message);
$form_state['redirect'] = TB_CONFIG_PAGE;
}