Skip to content

Commit

Permalink
Merge pull request #7 from Gizra/6
Browse files Browse the repository at this point in the history
Remove requiremenets check
  • Loading branch information
amitaibu committed Mar 8, 2015
2 parents 9118a5f + 267da23 commit fe5da58
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions logs_http.install
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,6 @@
* Install, update and uninstall functions for the Logs HTTP module.
*/

/**
* Implements hook_requirements().
*/
function logs_http_requirements($phase) {
$requirements = array();
$t = get_t();

if ($phase == 'runtime') {
$token = variable_get('logs_http_token');
if (empty($token)) {
$requirements['logs_http_token'] = array(
'title' => $t('Logs HTTP Client TOKEN'),
'value' => $t('Unconfigured'),
'description' => $t('Logs HTTP Client module requires a TOKEN to be <a href="!url">configured</a>.',
array('!url' => url('admin/config/services/logs-http-client'))),
'severity' => REQUIREMENT_ERROR,
);
}
if (!empty($token)) {
$requirements['logs_http_token'] = array(
'title' => $t('Logs HTTP Client Configuration'),
'value' => $t('OK'),
'severity' => REQUIREMENT_OK,
);
}
}

return $requirements;
}

/**
* Implements hook_uninstall().
*/
Expand Down

0 comments on commit fe5da58

Please sign in to comment.