You are here

function social_content_import_run_form in Social Content 7.2

Same name and namespace in other branches
  1. 7 social_content.admin.inc \social_content_import_run_form()

Form callback for running a social content import.

Provides a simple confirm form.

1 string reference to 'social_content_import_run_form'
social_content_menu in ./social_content.module
Implements hook_menu().

File

./social_content.admin.inc, line 159
Social Content administration area. Provides menu callbacks for the Social Content administration area.

Code

function social_content_import_run_form($form, &$form_state, $class) {
  $form['description'] = array(
    '#markup' => '<p>' . t('Run the %title import. Note that only new items will be imported.', array(
      '%title' => $class
        ->getInstanceTitle(),
    )) . '</p>',
  );
  $form['#storage']['class'] = $class;
  $form['run_import'] = array(
    '#title' => t('Run Import'),
    '#value' => t('Run Import'),
    '#type' => 'submit',
  );
  return $form;
}