/[drupal]/contributions/modules/blogtheme/blog_theme.module
ViewVC logotype

Diff of /contributions/modules/blogtheme/blog_theme.module

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

revision 1.27, Thu Aug 14 04:00:16 2008 UTC revision 1.28, Tue Sep 30 08:59:48 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: blog_theme.module,v 1.26 2008/08/13 12:22:43 augustin Exp $  // $Id: blog_theme.module,v 1.27 2008/08/14 04:00:16 augustin Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 196  function theme_blog_theme_select_form($f Line 196  function theme_blog_theme_select_form($f
196   * Menu callback: form builder for settings page.   * Menu callback: form builder for settings page.
197   */   */
198  function blog_theme_admin_settings_form() {  function blog_theme_admin_settings_form() {
199      global $user;
200    $form = array();    $form = array();
201    
202    $collapsed = TRUE;    $collapsed = TRUE;
203    $time = time();    $time = time();
204    $time_limit = $time - (60 * 60 * 24 * 30);    $time_limit = $time - (60 * 60 * 24 * 30);
205    if (variable_get('blog_theme_supported', 0) < $time_limit) {    if (variable_get('blog_theme_supported_' . $user->uid, 0) < $time_limit) {
206      $collapsed = FALSE;      $collapsed = FALSE;
207      variable_set('blog_theme_supported', $time);      variable_set('blog_theme_supported_' . $user->uid, $time);
208    }    }
209    
210    $form['blog_theme_support_maintainers'] = array(    $form['blog_theme_support_maintainers'] = array(
211      '#type' => 'fieldset',      '#type' => 'fieldset',
212      '#title' => t("Support the following charity web sites"),      '#title' => t('Support'),
213      '#collapsible' => TRUE,      '#collapsible' => TRUE,
214      '#collapsed' => $collapsed,      '#collapsed' => $collapsed,
215    );    );

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.2