PHP code example of hypejunction / elgg_tokeninput
1. Go to this page and download the library: Download hypejunction/elgg_tokeninput library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hypejunction / elgg_tokeninput example snippets
echo elgg_view('input/tokeninput', array(
'value' => $current_attachment_guids, // An array of values (guids or entities) to pre-populate the input with
'name' => 'attachment_guids',
'callback' => 'my_search_files_callback',
'query' => array('simpletype' => 'image'),
'multiple' => true
));