You are here

function potx_menu in Translation template extractor 5

Same name and namespace in other branches
  1. 5.2 potx.module \potx_menu()
  2. 6.3 potx.module \potx_menu()
  3. 6 potx.module \potx_menu()
  4. 6.2 potx.module \potx_menu()
  5. 7.3 potx.module \potx_menu()
  6. 7 potx.module \potx_menu()
  7. 7.2 potx.module \potx_menu()

Implementation of hook_menu().

File

./potx.module, line 26
Gettext translation template and translation extractor.

Code

function potx_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/locale/potx',
      'title' => t('Extract strings'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'potx_select_form',
      ),
      'access' => user_access('administer locales'),
      'weight' => 20,
      'type' => MENU_LOCAL_TASK,
    );
  }
  return $items;
}