You are here

function joomla_menu in Joomla to Drupal 7

Same name and namespace in other branches
  1. 5 joomla.module \joomla_menu()
  2. 6 joomla.module \joomla_menu()
  3. 7.2 joomla.module \joomla_menu()

Menu callback. Prints a listing of active nodes on the site.

File

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

Code

function joomla_menu() {
  $items = array();
  $items['admin/content/joomla_import'] = array(
    'title' => 'Import from Joomla',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'joomla_import_form',
    ),
    'access arguments' => array(
      'administer joomla',
    ),
    'description' => 'Import content, categories and users from a Joomla website',
    'type' => MENU_LOCAL_TASK | MENU_NORMAL_ITEM,
  );
  $items['admin/config/content/joomla'] = array(
    'title' => 'Joomla to Drupal',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'joomla_admin_settings',
    ),
    'access arguments' => array(
      'administer joomla',
    ),
    'description' => 'Migrate Joomla to Drupal.',
  );
  $items['admin/config/content/joomla/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  return $items;
}