You are here

function commerce_file_license_state_load in Commerce File 7

Returns a state object.

Parameters

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

Return value

The fully loaded state object or FALSE if not found.

2 calls to commerce_file_license_state_load()
CommerceFileLicenseEntity::set_state in includes/commerce_file_license.entity.inc
Set state
commerce_file_license_rules_action_update_state in ./commerce_file.rules.inc
Rules action: Update a license state

File

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

Code

function commerce_file_license_state_load($name) {
  $states = commerce_file_license_states();
  if (isset($states[$name])) {
    return $states[$name];
  }
  return FALSE;
}