function hook_commerce_reset_reset_items in Commerce Reset 7
Define commerce reset callbacks.
This hook enables modules to register their own callbacks.
Return value
array An array of items. The associative array has the following key-value pairs:
- "description": Required. This description will show on
the commerce_reset admin page at admin/commerce/reset/batch
- "callback": Required. The reset function to execute.
- "data_callback": Required. The function to execute
that will return the data to iterate through.
- "count_callback": Required. The function to execute
that will the return that data count.
- "primary_key": Required.
The primary key for the the database table if relevant.
3 functions implement hook_commerce_reset_reset_items()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- commerce_reset_commerce_billy_commerce_reset_reset_items in modules/
commerce_reset_commerce_billy/ commerce_reset_commerce_billy.module - Implements hook_commerce_reset_reset_items().
- commerce_reset_commerce_message_commerce_reset_reset_items in modules/
commerce_reset_commerce_message/ commerce_reset_commerce_message.module - Implements hook_commerce_reset_reset_items().
- commerce_reset_commerce_reset_reset_items in ./
commerce_reset.module - Define commerce reset callbacks.
1 invocation of hook_commerce_reset_reset_items()
- commerce_reset_reset_items in ./
commerce_reset.module - Register a hook reset hook.
File
- ./
commerce_reset.api.php, line 29 - API documentation for commerce_reset.
Code
function hook_commerce_reset_reset_items() {
$items = array();
$items[] = array(
'description' => t('My Action Commerce Reset Action'),
'callback' => 'my_custom_commerce_reset_action',
'data_callback' => 'my_custom_commerce_reset_get_data',
'count_callback' => 'my_custom_commerce_reset_data_count',
'primary_key' => 'my_custom_commerce_primary_key',
);
return $items;
}