function save_options() { if (preg_match('/\\/reader\\/shared\\/([A-Za-z0-9_\\.\\-]+)\\/?/i', $this->get_option('url'), $match)) { $this->update_option('user_id', $match[1]); } else { throw new Lifestream_Error("Invalid feed URL."); } parent::save_options(); }
function save_options() { if (preg_match('/id=([A-Z0-9]+)/i', $this->get_option('url'), $match)) { $this->update_option('user_id', $match[1]); } else { throw new Lifestream_Error("Invalid feed URL."); } parent::save_options(); }