| 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 |
| 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() { |