After your action has been defined, it can be added in the Views UI under Selected Bulk Operations in your Bulk operations field settings. It will be a separate checkbox alongside other actions like Execute arbitrary PHP script, etc. Once selected, it should show up as select option or action button (depending on how the VBO field is configured).
The VBO development guide on d.o. is a good example of working code for defining an action, adding a optional global/per-bulk setting form, & creating action handler.
Here's a very bare bones example:
//Will add a "User Action" option to Bulk Operations: User field in Views UI
function MYMODULE_action_info() {
return array(
'MYMODULE_user_action' => array(
//Can be other entities used in a view (e.g. 'node')
'type' => 'user',
'label' => t('User Action'),
'behavior' => array('changes_property'),
'triggers' => array('any'),
//Set to true if you an intermediate options form for your action
//'configurable' => true,
//Set to true if you want additional globaloptions
//'vbo_configurable' => true,
),
);
}
function MYMODULE_user_action(&$entity, $context){
//$entity is the current entity being modified; it can
// modified directly to perform the action on the entity
//$context is an array of contextual information about the
// current state of bulk processing (e.g. items remaining)
// It also contains configurable options values if any were set (see below)
}
//If 'configurable' => true in hook_action_info() item this trio of functions
// will add/process an intermediate form just like any Drupal form
function MYMODULE_user_action($settings, &$form_state){
//$settings['settings'] will contains settings set in
// MYMODULE_user_action_views_bulk_operations_form
}
function MYMODULE_user_action_validate($form, $form_state) {
}
function MYMODULE_user_action_submit($form, $form_state) {
//return an array of values usable by MYMODULE_user_action
}
//If 'vbo_configurable' => true, in hook_action_info() this presents
// additional configurable options for the VBO action.
// It returns a Drupal form array
function MYMODULE_user_action_views_bulk_operations_form($options) {
}