[added "delete asset" feature tom@wwworldmedia.com**20051212214251] { hunk ./GangplankEdit.php 549 - $html .= "Open/View uploaded file
"; + $html .= "Open/View uploaded file    Delete this file: "; hunk ./GangplankEdit.php 556 - +
hunk ./GangplankEdit.php 578 + $field = $col["name"]; hunk ./GangplankEdit.php 580 - $field = $col["name"]; + // If the user clicked the Delete This Asset checkbox, + // let's go ahead and clear the relevant fields. Also unlink the file. + if (isset($_POST["x_${field}_del"])) { + $sql = "$field = '', "; + if (!empty($options["path_column"])) { + $sql .= "$options[path_column] = '', "; + if (!empty($row[$options["path_column"]])) { + @unlink($row[$options["path_column"]]); + } + } + return $sql; + } + hunk ./GangplankEdit.php 1130 - }