| 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.module,v 1.2.2.7 2008/05/16 16:14:44 febbraro Exp $ |
$Id: calais.module,v 1.2.2.8 2008/05/27 17:01:25 febbraro Exp $ |
| 12 |
*/ |
*/ |
| 13 |
|
|
| 14 |
define('CALAIS_PROCESS_NO', 'NO'); |
define('CALAIS_PROCESS_NO', 'NO'); |
| 15 |
define('CALAIS_PROCESS_AUTO', 'AUTO'); |
define('CALAIS_PROCESS_AUTO', 'AUTO'); |
| 16 |
define('CALAIS_PROCESS_MANUAL', 'MANUAL'); |
define('CALAIS_PROCESS_MANUAL', 'MANUAL'); |
| 17 |
|
|
|
function calais_init() { |
|
|
$modulepath = drupal_get_path('module', 'calais'); |
|
|
require_once ("$modulepath/calais.ui.inc"); |
|
|
} |
|
|
|
|
| 18 |
/** |
/** |
| 19 |
* Implementation of hook_perm(). |
* Implementation of hook_perm(). |
| 20 |
*/ |
*/ |
| 38 |
); |
); |
| 39 |
} |
} |
| 40 |
else { |
else { |
| 41 |
|
$modulepath = drupal_get_path('module', 'calais'); |
| 42 |
|
require_once ("$modulepath/calais.ui.inc"); |
| 43 |
|
|
| 44 |
if (arg(0) == 'node' && is_numeric(arg(1))) { |
if (arg(0) == 'node' && is_numeric(arg(1))) { |
| 45 |
$node = node_load(arg(1)); |
$node = node_load(arg(1)); |
| 46 |
$items[] = array( |
$items[] = array( |