You are here

function joomla_menu in Joomla to Drupal 5

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

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

File

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

Code

function joomla_menu($may_cache) {
  $items = array();
  $items[] = array(
    'path' => 'joomla/import/' . arg(2),
    'title' => t('Joomla'),
    'callback' => 'joomla_import',
    'callback arguments' => array(
      arg(2),
    ),
    'access' => user_access('administer joomla'),
    'type' => MENU_CALLBACK,
  );
  $items[] = array(
    'path' => 'admin/settings/joomla',
    'title' => 'Joomla to Drupal',
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'joomla_admin_settings',
    ),
    'access' => user_access('administer joomla'),
    'description' => 'Migrate Joomla to Drupal.',
  );
  return $items;
}