You are here

function apps_profile_authorize_transfer in Apps 7

Get filetransfer authorization form.

1 string reference to 'apps_profile_authorize_transfer'
apps_profile_install_tasks in ./apps.profile.inc
Add install tasks to profile install tasks.

File

./apps.profile.inc, line 305
The install functions for the Apps module.

Code

function apps_profile_authorize_transfer($form, $form_state, &$install_state) {

  // Set the $_SESSION variables so that authorize form knows what to do after authorization.
  system_authorized_init('apps_profile_authorize_transfer_save', drupal_get_path('module', 'apps') . '/apps.profile.inc', array(), t('Apps Install Manager'));
  require_once DRUPAL_ROOT . '/includes/authorize.inc';

  // Get the authorize form.
  $form = drupal_retrieve_form('authorize_filetransfer_form', $form_state);

  // Add in the default form handlers.
  $form['#validate'][] = 'authorize_filetransfer_form_validate';
  $form['#submit'][] = 'authorize_filetransfer_form_submit';
  return $form;
}