[development] Improving theme('username') with inspiration from Facebook
beerfan at gmail.com
Tue Aug 21 09:22:53 UTC 2007
On 8/20/07, Moshe Weitzman <weitzman at tejasa.com> wrote:
> We have a handy function, theme('username') which accepts a uid and
> name and returns a profile link. But perhaps that function should be a
Actually, it accepts only a single argument but that is beside your point.
> Do folks think this is a good idea for Drupal core? If not, why? Could
> we deal with 'possesive' and 'reflexive' flags in a way that respects
> all languages? I know that this function can be enhanced in Contrib,
> but my desire is to improve the core.
I don't see the point of implementing this in core unless it would be
needed and used in core. It would already be possible to do this in a
theme and your module with
function phptemplate_username($object, $args = array())
So the question is if or how this flexibility could be needed in core.
You provide no examples.
More information about the development