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

Diff of /contributions/modules/stock/stock.module

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

revision 1.21.2.1, Wed Sep 24 16:35:28 2008 UTC revision 1.21.2.2, Sat Oct 25 00:35:16 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: stock.module,v 1.21 2008/09/22 03:58:45 kbahey Exp $  // $Id: stock.module,v 1.21.2.1 2008/09/24 16:35:28 kbahey Exp $
3    // 6.4 fixes by beyond
4    
5  /**  /**
6   * @defgroup stock Stock: Uses StockAPI to provide stock data to all modules   * @defgroup stock Stock: Uses StockAPI to provide stock data to all modules
# Line 85  function stock_link($type, $node = 0, $m Line 86  function stock_link($type, $node = 0, $m
86  }  }
87    
88  function stock_menu() {  function stock_menu() {
89      $title = variable_get('stock_overview_title', 'Stocks');
90    
91    $items['stock'] = array(    $items['stock'] = array(
92      'title'    => $title,      'title'              => $title,
93      'access arguments'   => array('use stock'),      'access arguments'   => array('use stock'),
94      'page callback'      => 'stock_page',      'page callback'      => 'stock_page',
     'type'               => MENU_LOCAL_TASK,  
     'weight'             => 0,  
95    );    );
96    
97    $items['admin/settings/stock'] = array(    $items['admin/settings/stock'] = array(
98      'title'              => 'Stock settings',      'title'              => 'Stock settings',
99      'description'        => 'Configure displayed titles and description.',      'description'        => 'Configure displayed titles and description.',
     'access arguments'   => array('administer site configuration'),  
100      'page callback'      => 'drupal_get_form',      'page callback'      => 'drupal_get_form',
101      'callback arguments' => array('stock_admin_settings'),      'page arguments'     => array('stock_admin_settings'),
102        'access arguments'   => array('administer site configuration'),
103    );    );
104    
105    return $items;    return $items;
# Line 141  function stock_form($symbols) { Line 142  function stock_form($symbols) {
142    return $output;    return $output;
143  }  }
144    
145  function stock_form_definition($symbols) {  function stock_form_definition($form_state, $symbols) {
146    global $user;    global $user;
147    
148    $form['symbol'] = array(    $form['symbol'] = array(
# Line 247  function stock_contents($format = 'block Line 248  function stock_contents($format = 'block
248        break;        break;
249    }    }
250    
251    
252    return $output;    return $output;
253  }  }
254    
# Line 275  function stock_do_quote($format = 'long' Line 277  function stock_do_quote($format = 'long'
277    }    }
278  }  }
279  function stock_theme() {  function stock_theme() {
280    return array();    return array('stock_page' => array() );
281  }  }
282    
283  function theme_stock_page($output) {  function theme_stock_page($output) {

Legend:
Removed from v.1.21.2.1  
changed lines
  Added in v.1.21.2.2

  ViewVC Help
Powered by ViewVC 1.1.2