/** * Save IPTC/EXIF settings to the options table * * @since 1.00 * * @uses $_REQUEST * * @return array Message(s) reflecting the results of the operation */ private static function _save_iptc_exif_settings() { $message_list = ''; $option_messages = ''; /* * Start with any page-level options */ foreach (MLAOptions::$mla_option_definitions as $key => $value) { if ('iptc_exif' == $value['tab']) { $option_messages .= self::mla_update_option_row($key, $value); } } /* * Uncomment this for debugging. */ // $message_list = $option_messages . '<br>'; /* * Add mapping options */ $new_values = isset($_REQUEST['iptc_exif_mapping']) ? $_REQUEST['iptc_exif_mapping'] : array('standard' => array(), 'taxonomy' => array(), 'custom' => array()); return array('message' => $message_list . MLAOptions::mla_iptc_exif_option_handler('update', 'iptc_exif_mapping', MLAOptions::$mla_option_definitions['iptc_exif_mapping'], $new_values), 'body' => ''); }