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

Diff of /contributions/modules/flexiblock/flexiblock.module

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

revision 1.6, Fri Jul 29 22:18:02 2005 UTC revision 1.7, Sat Jul 30 19:24:58 2005 UTC
# Line 1  Line 1 
1  <?php // $Id: flexiblock.module,v 1.5 2005/07/27 22:54:32 djnz Exp $  <?php // $Id: flexiblock.module,v 1.6 2005/07/29 22:18:02 djnz Exp $
2    
3  /**  /**
4   * @file   * @file
# Line 62  function flexiblock_help($section) { Line 62  function flexiblock_help($section) {
62  <p>Blocks are the boxes in the left and right side bars of the web site. They are made available by modules or created manually.</p>  <p>Blocks are the boxes in the left and right side bars of the web site. They are made available by modules or created manually.</p>
63  <p>Only enabled blocks are shown. You can position the blocks by deciding which side of the page they will show up on (sidebar) and in which order they appear (weight).</p>  <p>Only enabled blocks are shown. You can position the blocks by deciding which side of the page they will show up on (sidebar) and in which order they appear (weight).</p>
64  <p>If you want certain blocks to disable themselves temporarily during high server loads, check the 'Throttle' box. You can configure the auto-throttle on the <a href=\"%throttle\">throttle configuration page</a> after having enabled the throttle module.</p>  <p>If you want certain blocks to disable themselves temporarily during high server loads, check the 'Throttle' box. You can configure the auto-throttle on the <a href=\"%throttle\">throttle configuration page</a> after having enabled the throttle module.</p>
65  <p>Themes that support flexiblock use the regions in the 'location' column. Legacy themes use the settings in the 'Sidebar' column.</p>  <p>Themes that support flexiblock use the regions in the 'location' column. Legacy themes use the settings in the 'Sidebar' column. If you are having problems with flexiblock, the <a href=\"%debug\">debug page</a> might help.</p>
66  ", array('%throttle' => url('admin/settings/throttle')));  ", array('%throttle' => url('admin/settings/throttle'), '%debug' => url('admin/flexiblock/debug')));
67    }    }
68  }  }
69    
# Line 224  function flexiblock_admin_debug() { Line 224  function flexiblock_admin_debug() {
224    
225  function _flexiblock_get_mapping($theme=FALSE) {  function _flexiblock_get_mapping($theme=FALSE) {
226    if ( !$theme ) {    if ( !$theme ) {
227      $theme = drupal_get_theme();      // REVISIT is there a proper API to do this?
228        $theme = $GLOBALS['theme'];
229    }    }
230    $mapping = variable_get('flexiblock_mapping', array());    $mapping = variable_get('flexiblock_mapping', array());
231    if ( isset($mapping['themes'][$theme]) ) {    if ( isset($mapping['themes'][$theme]) ) {

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

  ViewVC Help
Powered by ViewVC 1.1.2