function commerce_file_commerce_file_license_status_info in Commerce File 7
Implements hook_commerce_file_license_status_info().
File
- includes/
commerce_file.entities.inc, line 38 - Handles file licenses and file license logs
Code
function commerce_file_commerce_file_license_status_info() {
$statuses = array();
$statuses['pending'] = array(
'name' => 'pending',
'title' => t('Pending'),
'state' => 'denied',
'weight' => -1,
'default' => TRUE,
);
$statuses['active'] = array(
'name' => 'active',
'title' => t('Active'),
'state' => 'allowed',
'weight' => 0,
);
/** @todo: remove 'canceled' now that 'revoked' is added ?? **************/
$statuses['canceled'] = array(
'name' => 'canceled',
'title' => t('Canceled'),
'state' => 'denied',
'weight' => 1,
);
$statuses['revoked'] = array(
'name' => 'revoked',
'title' => t('Revoked'),
'state' => 'denied',
'weight' => 2,
);
return $statuses;
}