You are here

function commerce_license_renew_action_submit in Commerce License 7

Submit handler for the commerce license update expiration action form.

File

./commerce_license.module, line 1322
Provides a framework for selling access to local or remote resources.

Code

function commerce_license_renew_action_submit($form, &$form_state) {
  $extension = $form_state['values']['duration_value'] * $form_state['values']['duration_unit'];
  return array(
    'extension' => $extension,
  );
}