public static function TweetHandler($arguments)
    {
        if (!isset($arguments['id'])) {
            return null;
        }
        if (substr($arguments['id'], 0, 4) === 'http') {
            list($unneeded, $id) = explode('/status/', $arguments['id']);
        } else {
            $id = $arguments['id'];
        }
        $data = json_decode(file_get_contents('https://api.twitter.com/1/statuses/oembed.json?id=' . $id . '&omit_script=true&lang=en'), 1);

        return $data['html'];
    }
public static function TweetHandler($arguments)
    {
        if (!isset($arguments['id'])) {
            return null;
        }
        if (substr($arguments['id'], 0, 4) === 'http') {
            list($unneeded, $id) = explode('/status/', $arguments['id']);
        } else {
            $id = $arguments['id'];
        }
        $data = json_decode(file_get_contents('https://api.twitter.com/1/statuses/oembed.json?id=' . $id . '&omit_script=true&lang=en'), 1);

        return $data['html'];
    }
public static function TweetHandler ( $ arguments ) { if ( ! isset ( $ arguments [ 'id' ] ) ) { return null ; } if ( substr ( $ arguments [ 'id' ] , 0 , 4 ) === 'http' ) { list ( $ unneeded , $ id ) = explode ( '/status/' , $ arguments [ 'id' ] ) ; } else { $ id = $ arguments [ 'id' ] ; } $ data = json_decode ( file_get_contents ( 'https://api.twitter.com/1/statuses/oembed.json?id=' . $ id . '&omit_script=true&lang=en' ) , 1 ) ; return $ data [ 'html' ] ; }
The following three functions are global once enabled!

@param array $arguments from Content.

@return String block with the parsed code.
The following three functions are global once enabled!