/[drupal]/contributions/modules/username_highlighter/username_highlighter.module
ViewVC logotype

Diff of /contributions/modules/username_highlighter/username_highlighter.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5, Fri Jul 24 13:58:53 2009 UTC revision 1.6, Fri Jul 24 14:18:15 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: username_highlighter.module,v 1.4 2009/07/24 13:31:34 soxofaan Exp $  // $Id: username_highlighter.module,v 1.5 2009/07/24 13:58:53 soxofaan Exp $
3    
4  /**  /**
5   * @file Implementation of the User name highlighter module.   * @file Implementation of the User name highlighter module.
# Line 150  function _username_highlighter_username_ Line 150  function _username_highlighter_username_
150        $color = _username_highlighter_uid2color($user->uid);        $color = _username_highlighter_uid2color($user->uid);
151        $username_map['/\\b'. $user->name .'\\b/'] =        $username_map['/\\b'. $user->name .'\\b/'] =
152          l($user->name, 'user/' . $user->uid,          l($user->name, 'user/' . $user->uid,
153            array('attributes' => array('style' => 'background-color:'. $color .';'))            array('attributes' => array(
154                'class' => 'user-name-highlighter user-name-highlighter-uid-'. $user->uid,
155                'style' => 'background-color:'. $color .';')
156              )
157          );          );
158      }      }
159    }    }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.2