/[drupal]/contributions/modules/opencalais/calais_api.module
ViewVC logotype

Diff of /contributions/modules/opencalais/calais_api.module

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

revision 1.2.2.6, Fri May 16 16:08:20 2008 UTC revision 1.2.2.7, Tue Jul 1 02:50:36 2008 UTC
# Line 8  Line 8 
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) {
# Line 74  function calais_api_menu($may_cache) { Line 66  function calais_api_menu($may_cache) {
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'),

Legend:
Removed from v.1.2.2.6  
changed lines
  Added in v.1.2.2.7

  ViewVC Help
Powered by ViewVC 1.1.2