function _html_for_buttons in Multiselect 5
Same name and namespace in other branches
- 6 multiselect.module \_html_for_buttons()
Provides html to display the buttons on the form @todo could I do this by putting items in the form array? (or would that be too complicated?)
1 call to _html_for_buttons()
- multiselect_widget in ./
multiselect.module - Implementation of hook_widget @todo Temporary 'print_r's need removing @todo Is the if ($field['widget']['type'] == 'multiselect_select' necessary? @todo Doesn't seem to populate list when in…
File
- ./
multiselect.module, line 150 - Allows users to select multiple items in an easier way than the normal node-reference widget
Code
function _html_for_buttons($fieldname) {
$addremovebuttons = "<span class='multiselect_add' id='{$fieldname}'>\n<img align='top' ";
$addremovebuttons .= "src='../../../sites/all/modules/multiselect/images/add.png' ";
$addremovebuttons .= "alt='add selection'>\n</span>";
$addremovebuttons .= "<span class='multiselect_remove' id='{$fieldname}'>\n<img align='bottom' ";
$addremovebuttons .= "src='../../../sites/all/modules/multiselect/images/remove.png' ";
$addremovebuttons .= "alt='add selection'>\n</span>";
return $addremovebuttons;
}