You are here

function commerce_file_license_status_load in Commerce File 7

Returns an status object.

Parameters

$name: The machine readable name string of the status to return.

Return value

The fully loaded status object or FALSE if not found.

1 call to commerce_file_license_status_load()
CommerceFileLicenseEntity::get_state in includes/commerce_file_license.entity.inc
State

File

includes/commerce_file.entities.inc, line 533
Handles file licenses and file license logs

Code

function commerce_file_license_status_load($name) {
  $statuses = commerce_file_license_statuses();
  if (isset($statuses[$name])) {
    return $statuses[$name];
  }
  return FALSE;
}