/** * @file * * * User: marand * Date: 05/09/15 * Time: 12:52 */ Template.header.helpers({ drupalSessionCookie: function () { var cookies = document.cookie.split(';'); var result = ''; cookies.forEach(function (item) { item = item.trim().split('='); if (item[0] === 'SESS2767e46e15422527777376ba0aeecd4b') { result = item[1]; } }); return result; }, authBaseUrl: function () { Meteor.call('userInfo', function (err, res) { Meteor._debug("in header helper authBaseUrl", res); Session.set("authBaseUrl", res); }); return Session.get("authBaseUrl"); } });