host = $host; $host->add_hook($host::HOOK_SUBSCRIBE_FEED, $this); } function hook_subscribe_feed($contents, $url, $auth_login, $auth_pass) { if (preg_match("/^https:\/\/twitter\.com\/([^\/]+)$/", $url, $matches) === 1) { $user = $matches[1]; $contents = "
"; $contents .= ""; $contents .= ""; $contents .= ""; //error_log(print_r($contents, TRUE)); } return $contents; } function api_version() { return 2; } } ?>