addYouAreHereLink('admin', __FILE__);
// Was the form submitted?
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Test Yoo!Media config
if (YOOMEDIA_TEST_CONFIG(postRequestArray())) {
// Save settings
} // END - for
// Set default selection
- foreach (array('yoomedia_erotic_allowed') as $entry) {
- $content[$entry . '_' . strtolower(getConfig($entry))] = ' selected="selected"';
- } // END - foreach
+ $content = merge_array($content, getSelectedConfig(array('yoomedia_erotic_allowed')));
// Load template
- loadTemplate('admin_config_yoomedia', false, $content);
+ loadTemplate('admin_config_yoomedia', FALSE, $content);
}
// [EOF]