1 # Copyright 2002-2007 Interchange Development Group and others
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
8 # $Id: mm_value.coretag,v 1.4 2007-03-30 23:40:54 pajamian Exp $
10 UserTag mm-value Order field table
11 UserTag mm-value addAttr
12 UserTag mm-value Version $Revision: 1.4 $
13 UserTag mm-value Routine <<EOR
15 my($field, $table, $opt, $text) = @_;
20 my $uid = $opt->{user};
21 unless ($record = $Vend::UI_entry) {
22 return '' unless ref($record = ui_acl_enabled());
24 #::logDebug("mm-value record: " . ::uneval($record));
25 $table = $opt->{table} || $::Scratch->{ui_data_table};
27 if($field eq 'user') {
28 return $Vend::Session->{ui_username} || $Vend::Session->{username} || $CGI::user;
42 if($check = $hash_field{$field}) {
43 if ($field eq 'acl_keys') {
44 return join "\n", get_ui_table_acl($table, $uid, 1);
47 $acl = get_ui_table_acl($table, $uid);
48 return $acl->{$field};
52 return $record->{$field};