public function WordPressComment::xpathValue in WordPress Migrate 7.2
Turn an array of XML objects returned by xpath() into a single string.
Parameters
$result:
Return value
string
2 calls to WordPressComment::xpathValue()
- WordPressComment::prepare in ./
wordpress_comment.inc - Prepare comment - called just before comment_save().
- WordPressComment::prepareRow in ./
wordpress_comment.inc - Implements Migration::prepareRow().
File
- ./
wordpress_comment.inc, line 281 - Support for migrating comments from a WordPress blog into Drupal.
Class
- WordPressComment
- Implementation of WordPressMigration, for comments
Code
public function xpathValue($result) {
return (string) reset($result);
}