This CodeLet add already implemented  "Pass ids as arguments to page" on VBO. 
Place this CodeLet to your custom module, you can see the customization on Bulk Operations field  on the image.

Views Bulk Operations add another Pass ids as arguments to page
CodeLet
<?php
/**
 * Implementation of hook_action_info
 * @return multitype:multitype:string boolean The
 */

function mymodule_action_info() {
    return array(
           
'mymodule_passid_to_other_page' => array( // declare the function name to be used. Replace the name with your function name
           
'type' => 'entity', // can be node,comment etc
           
'label' => t('Pass ids as arguments to page (Custom)'), // the name of the operation which is displayed to the user.
           
'aggregate' => TRUE,
           
'configurable' => FALSE,
           
'hooks' => array(),
           
'triggers' => array('any'),
    ),
    );
}


/**
 * Implementation of a Drupal action.
 * Passes selected ids as arguments to a view.
 */
function mymodule_passid_to_other_page($entities, $context = array()) {
   
$base_url = $context['settings']['url'];
   
$arguments = implode(',', array_keys($entities));
   
// Add a trailing slash if missing.
   
if (substr($base_url, -1, 1) != '/') {
       
$base_url .= '/';
    }
   
drupal_goto($base_url . $arguments);
}


/**
 * mymodule_passid_to_other_page_views_bulk_operations_form
 * @param unknown $options
 * @return multitype:string The Ambigous <string, unknown>
 */
function mymodule_passid_to_other_page_views_bulk_operations_form($options) {
   
$form['url'] = array(
           
'#title' => t('URL'),
           
'#type' => 'textfield',
           
'#description' => t('Enter a URL that the user will be sent to. A comma-separated list of selected ids will be appended.'),
           
'#default_value' => isset($options['url']) ? $options['url'] : '',
           
'#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q='),
    );
    return
$form;
}
?>
Submitted by saru1683 on