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

Diff of /contributions/modules/sidecontent/sidecontent.module

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

revision 1.13.2.2, Tue Jul 3 22:55:25 2007 UTC revision 1.13.2.3, Sat Apr 4 22:18:40 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: sidecontent.module,v 1.11.2.3 2006/10/22 19:43:50 MegaGrunt Exp $  // $Id: sidecontent.module,v 1.13.2.2 2007/07/03 22:55:25 MegaGrunt Exp $
3    
4  /**  /**
5   * Implementation of hook_perm().   * Implementation of hook_perm().
# Line 169  function sidecontent_form_alter($form_id Line 169  function sidecontent_form_alter($form_id
169        $form['sidecontent']['sidecontent_title'] = array(        $form['sidecontent']['sidecontent_title'] = array(
170          '#type' => 'textfield',          '#type' => 'textfield',
171          '#title' => t('Side Content Title'),          '#title' => t('Side Content Title'),
172          '#default_value' => check_plain($node->sidecontent_title),          '#default_value' => $node->sidecontent_title,
173          '#description' => t("Leave blank to use default side content title: <em>%title</em>", array('%title' => $default_title)),          '#description' => t("Leave blank to use default side content title: <em>%title</em>", array('%title' => $default_title)),
174          '#size' => 50,          '#size' => 50,
175          '#maxlength' => 128          '#maxlength' => 128
176        );        );
177    
       $content_default = (empty($node->sidecontent)) ? '' : check_markup($node->sidecontent, $node->sidecontent_format);  
   
178        $form['sidecontent']['sidecontent'] = array(        $form['sidecontent']['sidecontent'] = array(
179          '#type' => 'textarea',          '#type' => 'textarea',
180          '#title' => t('Side Content Text'),          '#title' => t('Side Content Text'),
181          '#default_value' => $content_default,          '#default_value' => $node->sidecontent,
182          '#description' => t('Content to display in side block.'),          '#description' => t('Content to display in side block.'),
183          '#cols' => 60,          '#cols' => 60,
184          '#rows' => 20,          '#rows' => 20,

Legend:
Removed from v.1.13.2.2  
changed lines
  Added in v.1.13.2.3

  ViewVC Help
Powered by ViewVC 1.1.2