/[drupal]/contributions/modules/i18n/i18nblocks/i18nblocks.module
ViewVC logotype

Diff of /contributions/modules/i18n/i18nblocks/i18nblocks.module

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

revision 1.7.2.17, Sat Aug 29 21:08:25 2009 UTC revision 1.7.2.18, Thu Nov 5 17:33:35 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: i18nblocks.module,v 1.7.2.16 2009/08/13 20:09:18 hass Exp $  // $Id: i18nblocks.module,v 1.7.2.17 2009/08/29 21:08:25 hass Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 327  function i18nblocks_theme_blocks($region Line 327  function i18nblocks_theme_blocks($region
327            $block = i18nblocks_translate_block($block, $i18nblocks['block'][$block->delta]);            $block = i18nblocks_translate_block($block, $i18nblocks['block'][$block->delta]);
328          }          }
329        }        }
330        elseif ($i18nmenu) {        else {
331          // Replace menu blocks by their translated version.          // Replace menu blocks by their translated version.
332          if ($block->module == 'menu') {          if ($i18nmenu && $block->module == 'menu') {
333            $block->content = i18nmenu_translated_tree($block->delta);            $block->content = i18nmenu_translated_tree($block->delta);
334          }          }
335          elseif ($block->module == 'user' && $block->delta == 1) {          elseif ($i18nmenu && $block->module == 'user' && $block->delta == 1) {
336            $block->content = i18nmenu_translated_tree('navigation');            $block->content = i18nmenu_translated_tree('navigation');
337            }
338            // This is block that isn't managed by i18nblocks but still could have a
339            // user customized title
340            if ($block->title && $block->title != '<none>') {
341              // Check plain here to allow module generated titles to keep any markup.
342              $block->subject = check_plain(tt("blocks:{$block->module}:{$block->bid}:title", $block->title));
343          }          }
344        }        }
345        // Finally, render the block using standard theming.        // Finally, render the block using standard theming.

Legend:
Removed from v.1.7.2.17  
changed lines
  Added in v.1.7.2.18

  ViewVC Help
Powered by ViewVC 1.1.2