title: Use VBO in Drupal through ajax action
body: <p>I have written a user action for bulk approving user</p>
  
  <p>I want to implement it using page refresh.Right now the pags is getting refresh</p>
  
  <p>I want to implement using ajax .</p>
  
  <p>How can i go about it </p>
  
  <p>In the view i have selected Use AJAX:Yes but still the page is refreshing</p>
  
  <pre><code>function bulkapprove_action_info() {
    $actions = array( 
      'bulkapprove_user_approve_action' =&gt; array(
        'type' =&gt; 'user', // Can be file, term, user, etc.
        'label' =&gt; t('Approve User'),
        'configurable' =&gt; FALSE, // Doesn't need config form
        'behavior' =&gt; array('changes_property'), // Uses view access rights  ,
        'pass rows' =&gt; TRUE,
         'vbo_configurable' =&gt; FALSE,
        'triggers' =&gt; array('any'), // Works always
      )
  
    return $actions;
  
  function bulkapprove_user_approve_action(&amp;$entity, $context) 
  {
  
  
     $entity-&gt;field_user_status['und'][0]['value'] = 'Approved';
     //drupal_set_message(t('Users are  approved '), 'status');
  
  
  } 
  </code></pre>