We create a input field using user interface for add multiple languages .How i can add multiple language using comma separate so after comma they will populate other language.
1 Answer
You need to explode the string inside the autocomplete
function.
function autocomplete_callback($string) {
$explode_str = explode(',', $string);
$last_str = drupal_strtolower(array_pop($explode_str));
// use $last_str in the query
$explode_str[] = $result;
return implode($explode_str);
}
-
-
-
Is that any module to add multiple value on single textbox via comma separated Feb 9, 2015 at 11:15
-
You can check example code of core taxonomy module. Check
hook_menu
intaxonomy.module
. Feb 9, 2015 at 11:17 -