Dotclear


Ignore:
Timestamp:
10/09/13 16:43:18 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Second step of contextual helps, closes #1760, now the help has to be completed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pings/_admin.php

    r2230 r2322  
    2626          'Google Blog Search' => 'http://blogsearch.google.com/ping/RPC2' 
    2727     ); 
    28            
     28 
    2929     $core->blog->settings->addNamespace('pings'); 
    3030     $core->blog->settings->pings->put('pings_active',1,'boolean','Activate pings plugin',true,true); 
     
    4848     )); 
    4949} 
    50 ?> 
     50 
     51$core->addBehavior('adminPageHelpBlock', 'pingsPageHelpBlock'); 
     52 
     53function pingsPageHelpBlock($blocks) 
     54{ 
     55     $found = false; 
     56     foreach($blocks as $block) { 
     57          if ($block == 'core_post') { 
     58               $found = true; 
     59               break; 
     60          } 
     61     } 
     62     if (!$found) { 
     63          return null; 
     64     } 
     65     $blocks[] = 'pings_post'; 
     66} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map