function commerce_file_hook_info in Commerce File 7
Implements hook_hook_info().
File
- ./
commerce_file.module, line 143 - Provides integration of file licenses with Commerce
Code
function commerce_file_hook_info() {
$hooks = array(
'commerce_file_license_state_info' => array(
'group' => 'commerce',
),
'commerce_file_license_state_info_alter' => array(
'group' => 'commerce',
),
'commerce_file_license_status_info' => array(
'group' => 'commerce',
),
'commerce_file_license_status_info_alter' => array(
'group' => 'commerce',
),
'commerce_file_license_info' => array(
'group' => 'commerce',
),
'commerce_file_license_info_alter' => array(
'group' => 'commerce',
),
'commerce_file_license_download' => array(
'group' => 'commerce',
),
'commerce_file_license_access_denied' => array(
'group' => 'commerce',
),
'commerce_file_license_log_download' => array(
'group' => 'commerce',
),
'commerce_file_content_headers_alter' => array(
'group' => 'commerce',
),
'commerce_file_download_unlicensed_access' => array(
'group' => 'commerce',
),
'commerce_file_download_unlicensed_access_alter' => array(
'group' => 'commerce',
),
);
foreach (array(
COMMERCE_FILE_LICENSE_ENTITY_NAME,
COMMERCE_FILE_LICENSE_LOG_ENTITY_NAME,
) as $entity_name) {
$hooks += array(
$entity_name . '_presave' => array(
'group' => 'commerce',
),
$entity_name . '_update' => array(
'group' => 'commerce',
),
$entity_name . '_insert' => array(
'group' => 'commerce',
),
$entity_name . '_delete' => array(
'group' => 'commerce',
),
);
}
return $hooks;
}