/[drupal]/contributions/modules/nodewords/nodewords.module
ViewVC logotype

Diff of /contributions/modules/nodewords/nodewords.module

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

revision 1.57.2.253 by kiam, Thu Nov 26 22:24:53 2009 UTC revision 1.57.2.254 by kiam, Thu Nov 26 23:39:31 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: nodewords.module,v 1.57.2.252 2009/11/26 18:01:22 kiam Exp $  // $Id: nodewords.module,v 1.57.2.253 2009/11/26 22:24:53 kiam Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 1150  function nodewords_unique($text, $separa Line 1150  function nodewords_unique($text, $separa
1150   ****************************************************************************/   ****************************************************************************/
1151    
1152  /**  /**
  * Check the enabled modules, and verify if there are modules implementing meta  
  * tags supported by nodewords.module.  
  *  
  * @return  
  *   TRUE if there are modules implementing meta tags.  
  */  
 function _nodewords_check_enabled_modules() {  
   $result = TRUE;  
   if (user_access('administer site configuration')) {  
     if (!count(module_implements('nodewords_api'))) {  
       drupal_set_message(  
         t(  
           'Nodewords does not create meta tags anymore; it is just a module that implements a public API used from the modules that create meta tags. You need to <a href="@url">enable</a> at least one module between nodewords_basic.module, nodewords_extra.module, and nodewords_verification_tags.module that are listed under <em>Meta tags</em> in the <a href="@url">modules page</a>.',  
           array('@url' => url('admin/build/modules'))  
         ),  
         'error'  
       );  
   
       $result = FALSE;  
     }  
   
     if (module_exists('nodewords_bypath')) {  
       drupal_set_message(  
         t(  
           'The feature implemented in <q>Meta Tags by Path</q> is now included in Nodewords; there is not need to use <q>Meta Tags by Path</q>, and the module should be disabled to avoid possible conflicts. Disable the module in the<a href="@url">modules page</a>.',  
           array('@url' => url('admin/build/modules'))  
         )  
       );  
     }  
   }  
 }  
   
 /**  
1153   * Try to guess the $type and $ids by looking at $_GET['q'].   * Try to guess the $type and $ids by looking at $_GET['q'].
1154   */   */
1155  function _nodewords_detect_type_and_ids() {  function _nodewords_detect_type_and_ids() {

Legend:
Removed from v.1.57.2.253  
changed lines
  Added in v.1.57.2.254

  ViewVC Help
Powered by ViewVC 1.1.3