You are here

function lti_tool_provider_trans_bool in LTI Tool Provider 7

Translate boolean to On/Off.

Parameters

integer $bool: The integer.

Return value

string On or Off.

2 calls to lti_tool_provider_trans_bool()
lti_tool_provider_consumers_admin in ./lti_tool_provider.admin.inc
Generate the consumer admin form.
lti_tool_provider_consumer_view in ./lti_tool_provider.admin.inc
View a single consumer entity.

File

./lti_tool_provider.module, line 535
lti_tool_provider hook implementations and support functions.

Code

function lti_tool_provider_trans_bool($bool) {
  if ($bool == 1) {
    return 'On';
  }
  else {
    return 'Off';
  }
}