You are here

function commerce_file_license_state_load in Commerce File 7

Returns a state object.


$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/
Set state
commerce_file_license_rules_action_update_state in ./
Rules action: Update a license state


includes/, line 402
Handles file licenses and file license logs


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