You are here

function data_export_import_export_users_form in Data export import 7

Same name and namespace in other branches
  1. 6 includes/profiles/users.inc \data_export_import_export_users_form()

Function to create form to export users.

1 string reference to 'data_export_import_export_users_form'
data_export_import_callback_export_users in includes/profiles/users.inc
Callback function to export users.

File

includes/profiles/users.inc, line 18
Enables users to be exported and imported.

Code

function data_export_import_export_users_form($form_state) {
  $form['export_users'] = array(
    '#type' => 'fieldset',
    '#title' => t('Export users'),
    '#collapsible' => FALSE,
    '#collapsed' => FALSE,
  );
  $form['export_users']['description'] = array(
    '#type' => 'item',
    '#title' => t('Export all users to a dataset file'),
  );

  // Adds a simple submit button that refreshes the form and clears its
  // contents. This is the default behavior for forms.
  $form['export_users']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Create dataset file'),
  );
  return $form;
}