| 1 |
<?php |
<?php |
| 2 |
// $Id: localizernode.module,v 1.8.2.8 2008/07/15 08:52:07 robertogerola Exp $ |
// $Id: localizernode.module,v 1.8.2.9 2008/07/15 13:58:20 robertogerola Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Localizer node module. |
* Localizer node module. |
| 220 |
|
|
| 221 |
if ($applylocalizer) { |
if ($applylocalizer) { |
| 222 |
$contents_types_enabled = variable_get('localizer_contents_types', array()); |
$contents_types_enabled = variable_get('localizer_contents_types', array()); |
| 223 |
preg_match('/\s+type\s*=\s*\'\S*\'/', $query, $matches); |
preg_match('/'. $primary_table .'\.type\s*=\s*\'\S*\'/', $query, $matches); |
| 224 |
$pos = strpos($matches[0], "'"); |
$pos = strpos($matches[0], "'"); |
| 225 |
$type = str_replace("'", "", substr($matches[0], $pos)); |
$type = str_replace("'", "", substr($matches[0], $pos)); |
| 226 |
if ($type && !$contents_types_enabled[$type]) $applylocalizer = FALSE; |
if ($type && !$contents_types_enabled[$type]) $applylocalizer = FALSE; |