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

Diff of /contributions/modules/tribune/tribune.module

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

revision 1.159.2.7, Wed Apr 1 06:37:19 2009 UTC revision 1.159.2.8, Wed Apr 1 06:44:13 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // vim:filetype=php expandtab tabstop=2 softtabstop=2 shiftwidth=2 autoindent smartindent  // vim:filetype=php expandtab tabstop=2 softtabstop=2 shiftwidth=2 autoindent smartindent
3  // $Id: tribune.module,v 1.159.2.6 2009/03/31 22:48:28 seeschloss Exp $  // $Id: tribune.module,v 1.159.2.7 2009/04/01 06:37:19 seeschloss Exp $
4    
5  /**  /**
6   * Some variables   * Some variables
# Line 1365  function theme_tribune_block($posts, $no Line 1365  function theme_tribune_block($posts, $no
1365    
1366    $contents .= "</ul>\n";    $contents .= "</ul>\n";
1367    
1368    if ($node->tribune_settings['posts_order'] == 0) {    // just in case some modules need to add some js or css
1369      return drupal_get_form('tribune_add_form_block', $node, $tribune_id, $block_settings) . $contents;    foreach (_tribune_get_filters_help($node) as $filter_name => $function) {
1370        $help = $function();
1371      }
1372    
1373      if (!$block_settings['read_only'] and tribune_access("post", $node)) {
1374        if ($node->tribune_settings['posts_order'] == 0) {
1375          return drupal_get_form('tribune_add_form_block', $node, $tribune_id, $block_settings) . $contents;
1376        } else {
1377          return $contents . drupal_get_form('tribune_add_form_block', $node, $tribune_id, $block_settings);
1378        }
1379    } else {    } else {
1380      return $contents . drupal_get_form('tribune_add_form_block', $node, $tribune_id, $block_settings);      return $contents;
1381    }    }
1382  }  }
1383    
# Line 1885  function tribune_add_form_block($form_va Line 1894  function tribune_add_form_block($form_va
1894      $form['#submit'] = array('tribune_post_submit');      $form['#submit'] = array('tribune_post_submit');
1895    }    }
1896    
   // just in case some modules need to add some js or css  
   foreach (_tribune_get_filters_help($node) as $filter_name => $function) {  
     $help = $function();  
   }  
   
1897    return $form;    return $form;
1898  }  }
1899    

Legend:
Removed from v.1.159.2.7  
changed lines
  Added in v.1.159.2.8

  ViewVC Help
Powered by ViewVC 1.1.2