{"action":"opened","issue":{"url":"https://api.github.com/repos/d8-contrib-modules/securepages/issues/6","labels_url":"https://api.github.com/repos/d8-contrib-modules/securepages/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/d8-contrib-modules/securepages/issues/6/comments","events_url":"https://api.github.com/repos/d8-contrib-modules/securepages/issues/6/events","html_url":"https://github.com/d8-contrib-modules/securepages/issues/6","id":98422634,"number":6,"title":"Disable settings form is https is not available ","user":{"login":"jstephendix","id":563680,"avatar_url":"https://avatars.githubusercontent.com/u/563680?v=3","gravatar_id":"","url":"https://api.github.com/users/jstephendix","html_url":"https://github.com/jstephendix","followers_url":"https://api.github.com/users/jstephendix/followers","following_url":"https://api.github.com/users/jstephendix/following{/other_user}","gists_url":"https://api.github.com/users/jstephendix/gists{/gist_id}","starred_url":"https://api.github.com/users/jstephendix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstephendix/subscriptions","organizations_url":"https://api.github.com/users/jstephendix/orgs","repos_url":"https://api.github.com/users/jstephendix/repos","events_url":"https://api.github.com/users/jstephendix/events{/privacy}","received_events_url":"https://api.github.com/users/jstephendix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-31T16:18:43Z","updated_at":"2015-07-31T16:18:43Z","closed_at":null,"body":"Disable the securepages_enable radio form element if https is not available - \r\nThis function in the D7 version checked if the site could be https\r\n```/**\r\n * Secure Pages SSL Test.\r\n */\r\nfunction securepages_test() {\r\n  global $is_https;\r\n\r\n  // If we are in an SSL page then assume that SSL is configured correctly.\r\n  if ($is_https) {\r\n    return TRUE;\r\n  }\r\n  $url = 'https://' . preg_replace(';^http[s]?://;s', '', url('admin/config/system/securepages/test', array('absolute' => TRUE)));\r\n\r\n  $response = drupal_http_request($url);\r\n\r\n  return $response->code == 200 ? TRUE : FALSE;\r\n}```"}}