| 1 |
<?php |
<?php |
| 2 |
// $Id: nodewords.module,v 1.57.2.251 2009/11/25 09:51:49 kiam Exp $ |
// $Id: nodewords.module,v 1.57.2.252 2009/11/26 18:01:22 kiam Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 1150 |
****************************************************************************/ |
****************************************************************************/ |
| 1151 |
|
|
| 1152 |
/** |
/** |
| 1153 |
* Show the requirement errors reported from nodewords_requirements(). |
* Check the enabled modules, and verify if there are modules implementing meta |
| 1154 |
* The function is an adaption of drupal_check_module(), and it is called in |
* tags supported by nodewords.module. |
| 1155 |
* the module settings pages. |
* |
| 1156 |
|
* @return |
| 1157 |
|
* TRUE if there are modules implementing meta tags. |
| 1158 |
*/ |
*/ |
| 1159 |
function _nodewords_check_enabled_modules() { |
function _nodewords_check_enabled_modules() { |
| 1160 |
|
$result = TRUE; |
| 1161 |
if (user_access('administer site configuration')) { |
if (user_access('administer site configuration')) { |
| 1162 |
if (!count(module_implements('nodewords_api'))) { |
if (!count(module_implements('nodewords_api'))) { |
| 1163 |
drupal_set_message( |
drupal_set_message( |
| 1167 |
), |
), |
| 1168 |
'error' |
'error' |
| 1169 |
); |
); |
| 1170 |
|
|
| 1171 |
|
$result = FALSE; |
| 1172 |
} |
} |
| 1173 |
|
|
| 1174 |
if (module_exists('nodewords_bypath')) { |
if (module_exists('nodewords_bypath')) { |