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

Diff of /contributions/modules/blockbar/blockbar.module

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

revision 1.3, Sun Nov 6 19:59:02 2005 UTC revision 1.4, Wed Nov 9 18:11:41 2005 UTC
# Line 42  function blockbar_build_blockbar($block_ Line 42  function blockbar_build_blockbar($block_
42    $content .= '</span>';    $content .= '</span>';
43    //the following <span> tags are needed to control javascript behavior    //the following <span> tags are needed to control javascript behavior
44    $content .= '<span id=block_bar_panel' . $block_num . ' class=' . ($i-1) . '></span>';    $content .= '<span id=block_bar_panel' . $block_num . ' class=' . ($i-1) . '></span>';
45    $sticky = (variable_get('blockbar_save_state' . $block, 1) == 1) ? 'block_sticky' : '';    $sticky = (variable_get('blockbar_save_state' . $block_num, 1) == 1) ? 'block_sticky' : '';
46    $content .= '<span id=block_bar_sticky' . $block_num . ' class=' . $sticky . '></span>';    $content .= '<span id=block_bar_sticky' . $block_num . ' class=' . $sticky . '></span>';
47    $unique = (variable_get('blockbar_open_unique' . $block, 1) == 1) ? 'block_unique' : '';    $unique = (variable_get('blockbar_open_unique' . $block_num, 1) == 1) ? 'block_unique' : '';
48    $content .= '<span id=block_bar_unique' . $block_num . ' class=' . $unique . '></span>';    $content .= '<span id=block_bar_unique' . $block_num . ' class=' . $unique . '></span>';
49    
50    return $content;    return $content;
# Line 101  function _blockbar_settings_form($block_ Line 101  function _blockbar_settings_form($block_
101      '#type' => 'checkbox',      '#type' => 'checkbox',
102      '#title' => t('Sticky panels'),      '#title' => t('Sticky panels'),
103      '#default_value' => variable_get('blockbar_save_state' . $block_num, 1),      '#default_value' => variable_get('blockbar_save_state' . $block_num, 1),
104        '#return_value' => 1,
105      '#tree' => FALSE,      '#tree' => FALSE,
106      '#description' => t('By checking this box your panels will remember their open/close state between page refreshes.')      '#description' => t('By checking this box your panels will remember their open/close state between page refreshes.')
107    );    );
# Line 108  function _blockbar_settings_form($block_ Line 109  function _blockbar_settings_form($block_
109      '#type' => 'checkbox',      '#type' => 'checkbox',
110      '#title' => t('Open one panel at a time'),      '#title' => t('Open one panel at a time'),
111      '#default_value' => variable_get('blockbar_open_unique' . $block_num, 1),      '#default_value' => variable_get('blockbar_open_unique' . $block_num, 1),
112        '#return_value' => 1,
113      '#tree' => FALSE,      '#tree' => FALSE,
114      '#description' => t('Checking this box will restrict open panels to one at a time.')      '#description' => t('Checking this box will restrict open panels to one at a time.')
115    );    );

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.2