function potx_menu in Translation template extractor 5.2
Same name and namespace in other branches
- 5 potx.module \potx_menu()
- 6.3 potx.module \potx_menu()
- 6 potx.module \potx_menu()
- 6.2 potx.module \potx_menu()
- 7.3 potx.module \potx_menu()
- 7 potx.module \potx_menu()
- 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;
}