You are here

function scald_dailymotion_search_form_search_submit in Scald: Media Management made easy 6

Handles search terms form submission.

1 string reference to 'scald_dailymotion_search_form_search_submit'
scald_dailymotion_search_form in scald_dailymotion/scald_dailymotion.pages.inc
Generates the search and search results form.

File

scald_dailymotion/scald_dailymotion.pages.inc, line 72
Contains form handlers for the DailyMotion search form.

Code

function scald_dailymotion_search_form_search_submit($form, &$form_state) {
  if ($form_state['clicked_button']['#value'] == t('Search')) {
    $form_state['storage']['terms'] = $form_state['values']['search']['search_term'];
  }
}