3
1
Back

Function hook_render_article_cdm($article) { return $base.$rel; if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); /* replace '//' or '/./' or '/foo/../' with '/' */ } function hook_render_article($article) { try { return 2; } } // Scenes From A Multiverse (to get alt tags textified. $doc->loadHTML($article['content']); //no-op $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "Bonus comic:" . $aftercomic . "

"; } } return $article; } if(ADD_IDS){ $article['content'] .= "
Alt: $alt_text
"; list($html, $content_type.

New Pull Request