| 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 |
| 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; |
| 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( |
| 248 |
break; |
break; |
| 249 |
} |
} |
| 250 |
|
|
| 251 |
|
|
| 252 |
return $output; |
return $output; |
| 253 |
} |
} |
| 254 |
|
|
| 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) { |