| 1 |
<?php |
<?php |
| 2 |
/* $Id: nodewords_nodetype.module,v 1.2.2.6 2009/09/24 01:29:20 hanoii Exp $ */ |
/* $Id: nodewords_nodetype.module,v 1.2.2.7 2009/09/24 14:08:07 hanoii Exp $ */ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_form_alter(). |
* Implementation of hook_form_alter(). |
| 113 |
|
|
| 114 |
// Robots |
// Robots |
| 115 |
// Don't replace per node meta robots |
// Don't replace per node meta robots |
| 116 |
$node_robots = array_filter($node->nodewords['robots']['value']); |
$node_robots = array(); |
| 117 |
|
if (is_array($node->nodewords['robots']['value'])) { |
| 118 |
|
$node_robots = array_filter($node->nodewords['robots']['value']); |
| 119 |
|
} |
| 120 |
if (empty($node_robots) && !$node->nodewords['robots']['use_default']) { |
if (empty($node_robots) && !$node->nodewords['robots']['use_default']) { |
| 121 |
$robots = variable_get('nodewords_nodetype_robots_'. $node->type, array()); |
$robots = variable_get('nodewords_nodetype_robots_'. $node->type, array()); |
| 122 |
if (!empty($robots)) { |
if (!empty($robots)) { |