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

Diff of /contributions/modules/helptip/helptip.module

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

revision 1.10, Fri Dec 8 19:56:39 2006 UTC revision 1.11, Sun Dec 17 04:35:26 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: helptip.module,v 1.9 2006/12/05 20:04:57 yogadex Exp $  // $Id: helptip.module,v 1.10 2006/12/08 19:56:39 yogadex Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 55  function _helptip_get_block_settings($de Line 55  function _helptip_get_block_settings($de
55   * Implementation of hook_block().   * Implementation of hook_block().
56   */   */
57  function helptip_block($op = 'list', $delta = 0, $edit = array()) {  function helptip_block($op = 'list', $delta = 0, $edit = array()) {
58      $var_name = "helptip_block_".$delta."_settings";
59    if ($op == 'list') {    if ($op == 'list') {
60      $blocks[0]['info'] = t('Help tips');      $blocks[0]['info'] = t('Help tips');
61      for ($i = 1; $i < _helptip_num_blocks(); $i++) {      for ($i = 1; $i < _helptip_num_blocks(); $i++) {
# Line 96  function helptip_block($op = 'list', $de Line 97  function helptip_block($op = 'list', $de
97      return $form;      return $form;
98    }    }
99    else if ($op == 'save') {    else if ($op == 'save') {
     $var_name = "helptip_block_".$delta."_settings";  
100      variable_set($var_name, $edit[$var_name]);      variable_set($var_name, $edit[$var_name]);
101    }    }
102    else if ($op == 'view') {    else if ($op == 'view') {

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.2