[dev] Turba Contact display...
Marc Jauvin
marc at register4less.com
Fri Dec 6 17:34:52 2002
Nobody is interested in this?
Quoting Marc Jauvin <marc@register4less.com>:
> This patch allow Contact names in turba to be displayed in "Lastname,
> Firstname"
> format (easier to read sorted list)
>
> Index: List.php
> ===================================================================
> RCS file: /repository/turba/lib/List.php,v
> retrieving revision 1.25
> diff -r1.25 List.php
> 135c135,140
> < $lastname = $this->guessLastname($object->getValue('name'));
> ---
> > $name = $object->getValue('name');
> > $lastname = $this->guessLastname($name);
> > if (! is_int(strpos($name, ',')) and strlen($name) >
> strlen($lastname)) {
> > $name = preg_replace("|\s+$lastname|", '',
> $name);
> > $object->setValue('name', $lastname . ', ' .
> $name);
> > }
>
>
>
> --<marc
>
> http://Register4less.com
> tel.: 450-441-5458
>
>
> --
> Horde developers mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe@lists.horde.org
>
>
>
--<marc
http://Register4less.com
tel.: 450-441-5458
More information about the dev
mailing list