You are here

function i18nblocks_menu in Internationalization 5.2

Same name and namespace in other branches
  1. 5.3 i18nblocks/i18nblocks.module \i18nblocks_menu()
  2. 5 i18nblocks/i18nblocks.module \i18nblocks_menu()

Implementation of hook_menu()

File

i18nblocks/i18nblocks.module, line 27

Code

function i18nblocks_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/build/block/i18n',
      'title' => t('Add multilingual block'),
      'access' => user_access('administer blocks'),
      'callback' => 'i18nblocks_admin',
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}