array key: notices
returns string

Once the query is run then the the waterfall continues rendering the notices The default value is an empty string indicating no notice. If notices is populated the value will be displayed above the input form.

function saturn_tables_cars_set_notices($input_form, $query_return, $notices) {	
	
	if (isset($post_vars['submit'])) {
	
		$id = isset($_GET['id']) ? (int)$_GET['id'] : 0;
	
		if ((!$id) && $query_return) {
			$notices[] = '<div class="notice notice-error is-dismissible"><p>' . __("There was a problem with the record insert.") . '</p></div>';			
		} elseif (($id) && $query_return) {			
			$notices[] = '<div class="notice notice-error is-dismissible"><p>' . __("There was a problem with the record update.") . '</p></div>';			
		} elseif ((!$id) && !$query_return) {			
			$notices[] = '<div class="notice notice-success is-dismissible"><p>' . __("A record was inserted.") . '</p></div>';			
		} elseif ($id && !$query_return) {
			$notices[] = '<div class="notice notice-success is-dismissible"><p>' . __("Record updated.") . '</p></div>';			
		}	
	}
	
	return $notices;
}