You are here

function whatsappshare_form_submit in Whatsapp Share 7

Same name and namespace in other branches
  1. 7.3 whatsappshare.admin.inc \whatsappshare_form_submit()
  2. 7.2 whatsappshare.admin.inc \whatsappshare_form_submit()

Function whatsappshare_form_submit() will contain submission logic.

Parameters

array $form_state: Array which set form values in database after form submissions.

File

./whatsappshare.admin.inc, line 56
Provides the Whatsappshare' administrative interface.

Code

function whatsappshare_form_submit($form, &$form_state) {
  variable_set('whatsappshare_button_text', $form_state['values']['button_text']);
  variable_set('whatsappshare_button_size', $form_state['values']['button_size']);
  variable_set('whatsappshare_sharing_text', $form_state['values']['sharing_text']);
  drupal_set_message(t('Your Whatsapp Share configuration has been saved.'));
}