You are here

function social_content_import_run_form in Social Content 7

Same name and namespace in other branches
  1. 7.2 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 107
Social Content administration area. Provides menu callbacks for the Social Content administration area.

Code

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