Skip to content

Commit

Permalink
Hide hashes in select
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Nov 4, 2010
1 parent 7abc734 commit 014373c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/example.php
Expand Up @@ -29,6 +29,9 @@ function tableName($tableStatus) {
} }


function fieldName($field, $order = 0) { function fieldName($field, $order = 0) {
if ($order && ereg('_(md5|sha1)$', $field["field"])) {
return ""; // hide hashes in select
}
// only columns with comments will be displayed and only the first five in select // only columns with comments will be displayed and only the first five in select
return ($order <= 5 ? h($field["comment"]) : ""); return ($order <= 5 ? h($field["comment"]) : "");
} }
Expand Down

0 comments on commit 014373c

Please sign in to comment.