title: Having 2 callable form validation rules for one field
body: <p>I have a personnel table in a database with a unique id (p_id) for each person.
  Then there are 2 other tables(authorisations and interventions) with records linked to the personnel table with (p_id)</p>
  
  <p>So i need to delete person from the database, I pass/send p_id to a delete function in the controller to delete the person, but i need to check that no records exists in the authorisations and interventions tables before the person can be deleted.</p>
  
  <p>i use form_validation on p_id</p>
  
  <pre class="lang-php prettyprint-override"><code>
  $this-&gt;load-&gt;library('form_validation');
          $this-&gt;form_validation-&gt;set_error_delimiters('','');
  
          $this-&gt;form_validation-&gt;set_rules(
              'p_id', 'Autorisations', array(
                  'trim', array(
                      'p_id_auth_callable',array($this-&gt;Personnel_model, 'check_pers_tasks')
                          )
              ),
              array('p_id_auth_callable' =&gt; ' Delete All {field}')
          );
  
          $this-&gt;form_validation-&gt;set_rules(
              'p_id', 'Interventions', array(
                  'trim', array('p_id_intv_callable',array($this-&gt;Personnel_model, 'check_pers_intv'))
              ),
              array('p_id_intv_callable' =&gt; ' Delete All {field}')
          );
  
  if ($this-&gt;form_validation-&gt;run() == FALSE){
  
              $pers_delete_msg['icon']  = 'fas fa-exclamation-triangle fa-lg';
              $pers_delete_msg['title']  = 'Warning';
              $pers_delete_msg['status'] = 'warning';
              $pers_delete_msg['text'] = validation_errors('&lt;span class="fas fa-exclamation-triangle"&gt;&lt;/span&gt;','');// . print_r($post_val,true) ;
          }   
          else{
              //delete person 
          }
  
  
  </code></pre>
  
  <p>both these rules work (if i use one of them) i get the correct message.</p>
  
  <p>If i use both rules together like the code above only the message from the last rule is generated.</p>
  
  <p>Can i have 2 callables in one rule combined.</p>
  
  <p>I use a datatable plugin and send the p_id via jquery ajax function to the controller</p>
  
  <pre><code>$('#table tbody').on( 'click', '.delete_pers', function (e) {
  
          e.preventDefault();
          var pers_data = table.row( $(this).parents('tr') ).data();
          $.ajax({
                  url: base_url +"personnel/delete_pers/",
                  data: { 
                      p_id: pers_data['p_id'] 
                  },
                  type: 'POST',
                  dataType:'json',
                  success: function(response){
                   //display response
                  }
                  error: function(response){
                   //display
                  }
   } );
  </code></pre>