| 1 |
<?php |
<?php |
| 2 |
// $Id: stock.module$ |
// $Id: stock.module,v 1.21 2008/09/22 03:58:45 kbahey Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @defgroup stock Stock: Uses StockAPI to provide stock data to all modules |
* @defgroup stock Stock: Uses StockAPI to provide stock data to all modules |
| 87 |
function stock_menu() { |
function stock_menu() { |
| 88 |
$items['stock'] = array( |
$items['stock'] = array( |
| 89 |
'title' => $title, |
'title' => $title, |
| 90 |
'access arguments' => user_access('use stock'), |
'access arguments' => array('use stock'), |
| 91 |
'page callback' => 'stock_page', |
'page callback' => 'stock_page', |
| 92 |
'type' => MENU_LOCAL_TASK, |
'type' => MENU_LOCAL_TASK, |
| 93 |
'weight' => 0, |
'weight' => 0, |
| 94 |
); |
); |
| 95 |
|
|
| 96 |
$items['admin/settings/stock'] = array( |
$items['admin/settings/stock'] = array( |
| 97 |
'title' => 'Stock settings', |
'title' => 'Stock settings', |
| 98 |
'description' => 'Configure displayed titles and description.', |
'description' => 'Configure displayed titles and description.', |
| 99 |
'access arguments' => user_access('administer site configuration'), |
'access arguments' => array('administer site configuration'), |
| 100 |
'page callback' => 'drupal_get_form', |
'page callback' => 'drupal_get_form', |
| 101 |
'callback arguments' => array('stock_admin_settings'), |
'callback arguments' => array('stock_admin_settings'), |
| 102 |
); |
); |
| 103 |
|
|