You are here

function gathercontent_finished_form in GatherContent 7.2

Form constructor for displaying finished message.

1 string reference to 'gathercontent_finished_form'
gathercontent_menu in ./gathercontent.module
Implements hook_menu().

File

includes/finished.inc, line 10
Contains finished dialog.

Code

function gathercontent_finished_form() {
  $project_id = variable_get('gathercontent_project_id');
  $saved_pages = variable_get('gathercontent_saved_pages');
  if (is_array($saved_pages) && isset($saved_pages[$project_id])) {
    unset($saved_pages[$project_id]);
    variable_set('gathercontent_saved_pages', $saved_pages);
  }
  $form['page_header'] = array(
    '#markup' => '<h2>' . check_plain(t('Success!')) . '</h2>',
  );
  $form['message'] = array(
    '#markup' => '<p>' . t('All of your selected content has been imported.') . '</p>',
  );
  $form['submit'] = array(
    '#type' => 'link',
    '#href' => 'admin/config/content/gathercontent/pages',
    '#title' => t('Go back to project'),
  );
  return $form;
}