| 8 |
This program is distributed in the hope that it will be useful, |
This program is distributed in the hope that it will be useful, |
| 9 |
but WITHOUT ANY WARRANTY. See the LICENSE.txt file for more details. |
but WITHOUT ANY WARRANTY. See the LICENSE.txt file for more details. |
| 10 |
|
|
| 11 |
$Id: calais_api.module,v 1.2.2.5 2008/05/16 14:35:43 febbraro Exp $ |
$Id: calais_api.module,v 1.2.2.6 2008/05/16 16:08:20 febbraro Exp $ |
| 12 |
*/ |
*/ |
| 13 |
|
|
| 14 |
/** |
/** |
|
* Implementation of hook_init(). Make sure the right files are included. |
|
|
*/ |
|
|
function calais_api_init() { |
|
|
$modulepath = drupal_get_path('module', 'calais'); |
|
|
require_once ("$modulepath/calais.test.inc"); |
|
|
} |
|
|
|
|
|
/** |
|
| 15 |
* Implementation of hook_requirements(). Check to make sure the API key is specified. |
* Implementation of hook_requirements(). Check to make sure the API key is specified. |
| 16 |
*/ |
*/ |
| 17 |
function calais_api_requirements($phase) { |
function calais_api_requirements($phase) { |
| 66 |
'title' => t('Calais API Settings'), |
'title' => t('Calais API Settings'), |
| 67 |
'description' => t('Configurations for Calais API'), |
'description' => t('Configurations for Calais API'), |
| 68 |
'type' => MENU_DEFAULT_LOCAL_TASK, |
'type' => MENU_DEFAULT_LOCAL_TASK, |
| 69 |
); |
); |
| 70 |
|
} |
| 71 |
|
else { |
| 72 |
|
$modulepath = drupal_get_path('module', 'calais'); |
| 73 |
|
require_once ("$modulepath/calais.test.inc"); |
| 74 |
|
|
| 75 |
$items[] = array( |
$items[] = array( |
| 76 |
'path' => 'calais/tester', |
'path' => 'calais/tester', |
| 77 |
'title' => t('Calais Test'), |
'title' => t('Calais Test'), |