You are here

function joomla_import_form in Joomla to Drupal 6

Same name and namespace in other branches
  1. 7.2 joomla.module \joomla_import_form()
  2. 7 joomla.module \joomla_import_form()
1 string reference to 'joomla_import_form'
joomla_menu in ./joomla.module
Menu callback. Prints a listing of active nodes on the site.

File

./joomla.module, line 74
The joomla module used for migrate Joomla to Drupal.

Code

function joomla_import_form(&$form_state) {
  if (!joomla_database_test()) {
    $form['error'] = array(
      '#value' => '<p>' . t('The joomla database settings are not currently valid.  Please set the correct database settings at <a href="@url">Joomla to Drupal settings</a> page', array(
        '@url' => url('admin/settings/joomla'),
      )) . '</p>',
    );
    return $form;
  }
  $form = joomla_import_form_checkboxes($form_state);
  $form['joomla_update_submit'] = array(
    '#type' => 'submit',
    '#value' => t('Import'),
  );
  return $form;
}