function scald_youtube_configuration_submit in Scald YouTube 7
Submit function to save the YouTube Configuration.
1 string reference to 'scald_youtube_configuration_submit'
File
- ./
scald_youtube.module, line 700 - Defines a YouTube provider for Scald.
Code
function scald_youtube_configuration_submit($form_id, &$form_state) {
variable_set('scald_youtube_api_key', $form_state['values']['scald_youtube_api_key']);
variable_set('scald_youtube_show_related', $form_state['values']['scald_youtube_show_related']);
variable_set('scald_youtube_autoplay', $form_state['values']['scald_youtube_autoplay']);
variable_set('scald_youtube_delayed_cookie', $form_state['values']['scald_youtube_delayed_cookie']);
variable_set('scald_youtube_defer_videos', $form_state['values']['scald_youtube_defer_videos']);
variable_set('scald_youtube_consent_enable', $form_state['values']['scald_youtube_consent_enable']);
variable_set('scald_youtube_consent_text', $form_state['values']['scald_youtube_consent_text']);
variable_set('scald_youtube_consent_button', $form_state['values']['scald_youtube_consent_button']);
variable_set('scald_youtube_thumb_size', $form_state['values']['scald_youtube_thumb_size']);
}