function joomla_import_form in Joomla to Drupal 7
Same name and namespace in other branches
- 6 joomla.module \joomla_import_form()
- 7.2 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 85 - The joomla module used for migrate Joomla to Drupal.
Code
function joomla_import_form() {
if (!joomla_database_test()) {
$form['error'] = array(
'#markup' => '<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;
}