Changeset 10244 for extensions/LCAS/trunk/main.inc.php
- Timestamp:
- Apr 10, 2011, 6:49:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/trunk/main.inc.php
r10221 r10244 180 180 } 181 181 182 // LCAS_add_tooltips_user_list 183 // 184 // Allow to use LCAS for searching usernames, in admin user_list page 185 // Also set prefilter to add tooltip 186 // 187 add_event_handler('loc_begin_admin', 'LCAS_add_tooltips_user_list'); 188 189 function LCAS_add_tooltips_user_list() { 190 global $template, $conf, $lang; 191 192 $conf_LCAS= unserialize($conf['LoginCaseAccentsSensitivity']); 193 194 if (strpos($_SERVER['REQUEST_URI'], 'user_list') !== false) { 195 $template->assign( 196 'LCAS_username_tooltip_admin', 197 $lang['LCAS_tooltip_username_admin'][intval($conf_LCAS[0])] 198 ); 199 $template->set_prefilter('user_list','LCAS_add_tooltips_prefilter_admin'); 200 // $template->append('footer_elements',str_from_var2($template->smarty->_tpl_vars)); 201 } 202 } 203 204 function LCAS_add_tooltips_prefilter_admin($content, &$smarty) { 205 $search = 'name="username"'; 206 $replacement = 'name="username" title="{$LCAS_username_tooltip_admin}"'; 207 $content = str_replace($search, $replacement, $content); 208 return $content; 209 } 210 182 211 ?>
Note: See TracChangeset
for help on using the changeset viewer.