You are here

function entity_translation_menu in Entity Translation 7

Implements hook_menu().

File

./entity_translation.module, line 225

Code

function entity_translation_menu() {
  $items = array();
  $items['admin/config/regional/entity_translation'] = array(
    'title' => 'Entity translation',
    'description' => 'Configure which entities can be translated and enable or disable language fallback.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'entity_translation_admin_form',
    ),
    'access arguments' => array(
      'administer entity translation',
    ),
    'file' => 'entity_translation.admin.inc',
    'module' => 'entity_translation',
  );
  $items['admin/config/regional/entity_translation/translatable/%'] = array(
    'title' => 'Confirm change in translatability.',
    'description' => 'Confirmation page for changing field translatability.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'entity_translation_translatable_form',
      5,
    ),
    'access arguments' => array(
      'toggle field translatability',
    ),
    'file' => 'entity_translation.admin.inc',
  );
  $items['entity_translation/taxonomy_term/autocomplete'] = array(
    'title' => 'Entity translation autocomplete',
    'page callback' => 'entity_translation_taxonomy_term_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}