function fontyourface_settings_form_submit in @font-your-face 6.2
Same name and namespace in other branches
- 7 fontyourface.module \fontyourface_settings_form_submit()
Handles provider imports.
File
- ./
fontyourface.module, line 464
Code
function fontyourface_settings_form_submit($form, &$form_state) {
foreach (module_implements('fontyourface_import') as $module) {
if ($form_state['clicked_button']['#array_parents'][1] == $module . '_import') {
$info_function = $module . '_fontyourface_info';
$provider = $info_function();
$import_function = $module . '_fontyourface_import';
$import_function();
drupal_set_message(t('@provider import complete.', array(
'@provider' => $provider['name'],
)));
}
// if
}
// foreach
if ($form_state['values']['detailed_logs'] == 1) {
variable_set('fontyourface_detailed_logging', TRUE);
}
else {
variable_set('fontyourface_detailed_logging', FALSE);
}
// else
}