}
function process(&$article) {
- $owner_uid = $article["owner_uid"];
-
if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) {
- if (strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
if ($debug_enabled) {
_debug("af_pennyarcade: Processing comic");
if ($basenode) {
$article["content"] = $doc->saveXML($basenode);
- $article["plugin_data"] = "af_comics,$owner_uid:" . $article["plugin_data"];
}
}
- } else if (isset($article["stored"]["content"])) {
- $article["content"] = $article["stored"]["content"];
- }
return true;
}
if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "News Post:") !== FALSE) {
- if (strpos($article["plugin_data"], "af_comics,$owner_uid:") === FALSE) {
if ($debug_enabled) {
_debug("af_pennyarcade: Processing news post");
}
if ($basenode){
$article["content"] = $doc->saveXML($basenode);
- $article["plugin_data"] = "af_comics,$owner_uid:" . $article["plugin_data"];
}
}
- } else if (isset($article["stored"]["content"])) {
- $article["content"] = $article["stored"]["content"];
- }
return true;
}