cvs diff: Diffing . Index: janode.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/janode/janode.module,v retrieving revision 1.6 diff -u -p -r1.6 janode.module --- janode.module 4 Jun 2006 22:09:40 -0000 1.6 +++ janode.module 11 Jun 2006 08:25:04 -0000 @@ -50,6 +50,9 @@ class _janode_defaults { var $html_link_class = 'janode_link'; var $html_link_wrapperA = '

'; + + // content-type display name + var $content_type_display_name = "Jan's node"; } /* }}} */ @@ -72,7 +75,10 @@ function janode_help($section) { * Implementation of hook_info() */ function janode_node_info() { - return array('janode' => array('name' => t("Jan's node"), 'base' => 'janode')); + return array('janode' => array( + 'base' => 'janode', + 'name' => _janode_local_settings('content_type_display_name') + )); } /* }}} */ @@ -117,15 +123,15 @@ function janode_access($op, $node) { function janode_menu($may_cache) { $items = array(); - if (1 || $may_cache) { + if ($may_cache) { $items[] = array( 'path' => 'node/add/janode', - 'title' => t('janode'), + 'title' => _janode_local_settings('content_type_display_name'), 'access' => user_access('create janode') ); $items[] = array( 'path' => 'janode', - 'title' => t('Janode redirect'), + 'title' => _janode_local_settings('content_type_display_name') . t(' redirect'), 'access' => user_access('access content'), 'callback' => '_janode_redirect', 'type' => MENU_CALLBACK @@ -172,6 +178,12 @@ function janode_settings() { '#default_value' => _janode_local_settings('open_new_window'), '#description' => t('Make the link open in a new broswer window') ); + $form['janode']['content_type_display_name'] = array( + '#type' => 'textfield', + '#title' => t('Content type display name'), + '#default_value' => _janode_local_settings('content_type_display_name'), + '#description' => t('The name of the content type when adding new content') + ); $form['janode']['index_how_many_per_cron'] = array( '#type' => 'textfield', '#title' => t('How many janodes to 404 test'),