protected function OGMTTestBase::_set_node_body in Open Graph meta tags 6
Same name and namespace in other branches
- 7.2 tests/TestBase.inc \OGMTTestBase::_set_node_body()
- 7 tests/TestBase.inc \OGMTTestBase::_set_node_body()
2 calls to OGMTTestBase::_set_node_body()
File
- tests/
TestBase.inc, line 61
Class
- OGMTTestBase
- Base test class
Code
protected function _set_node_body(&$node, $body) {
switch (OPENGRAPH_META_DRUPAL_VERSION) {
case 6:
$node->body = $body;
break;
default:
$node->body = array(
LANGUAGE_NONE => array(
'0' => array(
'value' => $body,
),
),
);
}
}