Commit 8e00dc3f authored by paalj's avatar paalj

Removed deprecated function

parent 2a2305dd
......@@ -167,14 +167,6 @@ function h5p_get_export_path($content) {
function h5p_embed($node) {
global $language;
$callback = filter_input(INPUT_GET, 'callback');
if ($callback !== NULL) {
// Old embed code only returns resizer url
print $callback . '(\'' . h5p_get_resize_url() . '\');';
return;
}
$node = node_load($node);
if (!$node || !node_access('view', $node) || !isset($node->json_content)) {
print '<body style="margin:0"><div style="background: #fafafa url(http://h5p.org/sites/all/themes/professional_themec/images/h5p.svg) no-repeat center;background-size: 50% 50%;width: 100%;height: 100%;"></div><div style="width:100%;position:absolute;top:75%;text-align:center;color:#434343;font-family: Consolas,monaco,monospace">' . t('Content unavailable.') . '</div></body>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment