function nodewords_basic_robots_is_empty in Nodewords: D6 Meta Tags 6.3
Same name and namespace in other branches
- 6.2 nodewords_basic/includes/nodewords_basic.nodewords.tags.inc \nodewords_basic_robots_is_empty()
Check if the meta tag content is empty.
File
- nodewords_basic/
includes/ nodewords_basic.nodewords.tags.inc, line 271 - Meta tags definition file.
Code
function nodewords_basic_robots_is_empty($content) {
$result = empty($content['index_follow']);
if (isset($content['value']) && is_array($content['value'])) {
$value = array_filter($content['value']);
return $result && empty($value);
}
return $result;
}