Dotclear


Ignore:
Timestamp:
05/03/11 11:26:41 (13 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
userprefs
Message:

Implements adminDashboardFavsIcon behavior in order to let plugins set their own fav icon title on dashboard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r119 r130  
    116116                    ($fav['name'] == 'comments' ? sprintf($str_comments,$comment_count) : $fav['title'])); 
    117117               $__dashboard_icons[$fav['name']] = new ArrayObject(array($title,$fav['url'],$fav['large-icon'])); 
     118 
     119               # Let plugins set their own title for favorite on dashboard 
     120               $core->callBehavior('adminDashboardFavsIcon',$core,$fav['name'],$__dashboard_icons[$fav['name']]); 
    118121          } 
    119122     } 
     
    128131                    ($fav['name'] == 'comments' ? sprintf($str_comments,$comment_count) : $fav['title'])); 
    129132               $__dashboard_icons[$fav['name']] = new ArrayObject(array($title,$fav['url'],$fav['large-icon'])); 
     133 
     134               # Let plugins set their own title for favorite on dashboard 
     135               $core->callBehavior('adminDashboardFavsIcon',$core,$fav['name'],$__dashboard_icons[$fav['name']]); 
    130136          } 
    131137     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map