Ignore:
Timestamp:
02/24/12 09:50:44 (12 years ago)
Author:
nanardon
Message:
  • each attribute can be now documented from configuration
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm

    r902 r909  
    217217        $self->escape($label || $attr), 
    218218    ); 
     219} 
     220 
     221sub attr_hint { 
     222    my ($self, $attr) = @_; 
     223    LATMOS::Accounts::Web->config->{attrs} ||= {}; 
     224    if (my $attr_config = LATMOS::Accounts::Web->config->{attrs}{$attr}) { 
     225        return $attr_config->{hint} || ''; 
     226    } 
     227    return; 
    219228} 
    220229 
Note: See TracChangeset for help on using the changeset viewer.