function scald_dailymotion_imports_form_add in Scald: Media Management made easy 6
Handles the submission of the form that adds a new import.
1 string reference to 'scald_dailymotion_imports_form_add'
- scald_dailymotion_imports_form in scald_dailymotion/
scald_dailymotion.admin.inc - Defines the import settings form.
File
- scald_dailymotion/
scald_dailymotion.admin.inc, line 72 - Provides admin form for DailyMotion's Scald Provider.
Code
function scald_dailymotion_imports_form_add($form, &$form_state) {
$imports = variable_get('scald_dailymotion_imports', array());
$values = $form_state['values'];
$key = $values['type'] . '-' . $values['value'];
$imports[$key] = array(
'type' => $values['type'],
'value' => $values['value'],
);
variable_set('scald_dailymotion_imports', $imports);
drupal_set_message(t('Import added'));
}