⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

add_action return



maha
  • profile picture
  • Member

Posted 28 February 2013 - 09:01 AM

how can i make add_action return more than one string

what i need is:

return  anchor('Admin/Organizing_committee/Sorting_updown/'.$row->ID,img(array('src'=>base_url().'assets/admin/images/kdevelop_up.png')));
                 return  anchor('Admin/Organizing_committee/Sorting_down/'.$row->ID,img(array('src'=>base_url().'assets/admin/images/kdevelop_down.png')));

i know that is wrong but this what i want to solve.


davidoster
  • profile picture
  • Member

Posted 03 March 2013 - 10:37 AM

Suggestion (I don't know if it will work I need to check it on the source code of the library): Try to combine them into an array and return the array, e.g.

 

$value1 = ...;

$value2 = ...;

$anchors = array($value1,$value2);

 

return $anchors;

 

If it doesn't extend the library and customize the add_action function to your needs!