- echo ' <table width="100%" cellpadding="1" cellspacing="0" align="center"'.' border="0" bgcolor="'.$color[9].'">';
- echo ' <tr><td>';
- echo ' <table width="100%" cellpadding="0" cellspacing="0" align="center" border="0" bgcolor="'.$color[4].'">';
- echo ' <tr><td ALIGN="center" bgcolor="'.$color[0].'">';
- echo ' <font color="' . $color[2].'"><b>' . $err . ':</b></font>';
- echo ' </td></tr>';
- echo ' <tr><td>';
- echo ' <table cellpadding="1" cellspacing="5" align="center" border="0">';
- echo ' <tr>' . html_tag( 'td', $string."\n", 'left')
- . '</tr>';
- echo ' </table>';
- echo ' </table></td></tr>';
- echo ' </table>';
- echo ' </td></tr>';
+ echo '<table width="100%" cellpadding="1" cellspacing="0" align="center" border="0" bgcolor="'.$color[9].'">'.
+ '<tr><td>'.
+ '<table width="100%" cellpadding="0" cellspacing="0" align="center" border="0" bgcolor="'.$color[4].'">'.
+ '<tr><td align="center" bgcolor="'.$color[0].'">'.
+ '<font color="'.$color[2].'"><b>' . $err . ':</b></font>'.
+ '</td></tr><tr><td>'.
+ '<table cellpadding="1" cellspacing="5" align="center" border="0">'.
+ '<tr>' . html_tag( 'td', $string."\n", 'left') . '</tr></table>'.
+ '</td></tr></table></td></tr></table>';
+}
+
+/**
+ * Adds message that informs about non fatal error that can happen while saving preferences
+ * @param string $message error message
+ * @since 1.5.1
+ */
+function error_option_save($message) {
+ global $optpage_save_error;
+
+ if (! is_array($optpage_save_error) )
+ $optpage_save_error=array();
+
+ $optpage_save_error=array_merge($optpage_save_error,array($message));