Aegir Drush Drupal 6 I am using the Hosting module through Aegir. I created a module with some extra fields such as "site_name," "fields," and "description," which was done successfully. I want to use these fields on a newly created website. I am using this code in the new site: 

function silverpack_config_menu() {
  // Create additional primary menu items
  $items = array(
    array('link_path' =&gt; '&lt;front&gt;', 'link_title' =&gt; t('Home'), 'weight' =&gt; 0),
    array('link_path' =&gt; 'node/2', 'link_title' =&gt;t(drush_get_option('site_name')), 'weight' =&gt; 6),
    array('link_path' =&gt; 'node/3', 'link_title' =&gt; t('Contact'), 'weight' =&gt; 8),
     array('link_path' =&gt; 'node/4', 'link_title' =&gt; t('Contact US'), 'weight' =&gt; 10),
     array('link_path' =&gt; 'node/5', 'link_title' =&gt; t('Terms &amp; Conditions'), 'weight' =&gt; 10),
     );

  foreach ($items as $item) {
    $item += array(
      'mlid' =&gt; 0,
      'module' =&gt; 'menu',
      'has_children' =&gt; 0,
      'options' =&gt; array(
        'attributes' =&gt; array(
          'title' =&gt; '',
        ),
      ),
      'customized' =&gt; 1,
      'original_item' =&gt; array(
        'link_title' =&gt; '',
        'mlid' =&gt; 0,
        'plid' =&gt; 0,
        'menu_name' =&gt; 'primary-links',
        'weight' =&gt; 1,
        'link_path' =&gt; '',
        'options' =&gt; array(),
        'module' =&gt; 'menu',
        'expanded' =&gt; 0,
        'hidden' =&gt; 0,
        'has_children' =&gt; 0,
      ),
      'description' =&gt; '',
      'expanded' =&gt; 0,
      'parent' =&gt; 'primary-links:0',
      'hidden' =&gt; 0,
      'plid' =&gt; 0,
      'menu_name' =&gt; 'primary-links',
    );
    menu_link_save($item);
  }


}


Here, I want to use drush_get_option('site_name'). "site_name" is one of the fields I use in Aegir's Hosting module.

Does anybody have an idea on how to do this?
I see that you have not returned the $items array before exiting hook_menu. I assume it is a typo, but just incase it is not, you need to insert return $items; before the end of the function.

You need to check whether or not Drupal is able to fetch the value returned by drush_get_option(). 

Can you check in your hook_init(), the value of drush_get_option()? 

Something like the following code should work.

function silverpack_config_init(){
  $test_sitename = drush_get_option('site_name');
  dsm($test_sitename);// Install Devel Module to use dsm()
}


Clear the cache, and refresh twice to see if you receive anything back from Drupal. If it is not returning anything, that means either "site_name" is not registered in your database table, or drush is not getting the context properly.