Dotclear


Ignore:
Timestamp:
10/03/13 16:00:46 (12 years ago)
Author:
Dsls
Branch:
default
Message:
  • New adminDashboardFavorites behavior introduced, adapted several plugins to it
  • Added ability to move the whole favorite with title_cb, now renamed dashboard_cb
  • new pages and pages shortcuts are now functional, closes #1727
  • Moved preferences.php to new notifications system
File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/_admin.php

    r2022 r2230  
    2424$core->addBehavior('adminDashboardIcons',array('dcAntispam','dashboardIcon')); 
    2525 
    26 $core->addBehavior('adminDashboardFavs','antispamDashboardFavs'); 
     26$core->addBehavior('adminDashboardFavorites','antispamDashboardFavorites'); 
    2727$core->addBehavior('adminDashboardFavsIcon','antispamDashboardFavsIcon'); 
    2828 
    29 function antispamDashboardFavs($core,$favs) 
     29function antispamDashboardFavorites($core,$favs) 
    3030{ 
    31      $favs['antispam'] = new ArrayObject(array('antispam','Antispam','plugin.php?p=antispam', 
    32           'index.php?pf=antispam/icon.png','index.php?pf=antispam/icon-big.png', 
    33           'admin',null,null)); 
     31     $favs->register('antispam', array( 
     32          'title' => __('Antispam'), 
     33          'url' => 'plugin.php?p=antispam', 
     34          'small-icon' => 'index.php?pf=antispam/icon.png', 
     35          'large-icon' => 'index.php?pf=antispam/icon-big.png', 
     36          'permissions' => 'admin', 
     37          'dashboard_cb' => 'antispamDashboard') 
     38     ); 
    3439} 
    3540 
Note: See TracChangeset for help on using the changeset viewer.

Sites map