Commits

Anonymous committed b30e1de

Revised dlink to accept custom text for the delete field.

  • Participants
  • Parent commits 1cc7b3b

Comments (0)

Files changed (1)

File textpattern/lib/txplib_html.php

 
 // -------------------------------------------------------------
 
-	function dLink($event, $step, $thing, $value, $verify = '', $thing2 = '', $thing2val = '', $get = '', $remember = null) {
+	function dLink($event, $step, $thing, $value, $verify = '', $thing2 = '', $thing2val = '', $get = '', $remember = null,$text = '×') {
 		if ($remember) {
 			list($page, $sort, $dir, $crit, $search_method) = $remember;
 		}
 			return join('', array(
 				'<a href="'.$url.'" class="dlink" onclick="return verify(\'',
 				($verify) ? gTxt($verify) : gTxt('confirm_delete_popup'),
-				'\')">×</a>'
+				'\')">'.$text.'</a>'
 			));
 		}
 
 		return join('', array(
 			'<form method="post" action="index.php" onsubmit="return confirm(\''.gTxt('confirm_delete_popup').'\');">',
-			 fInput('submit', '', '×', 'smallerbox'),
+			 fInput('submit', '', $text, 'smallerbox'),
 			 eInput($event).
 			 sInput($step),
 			 hInput($thing, $value),