You are here

function _html_for_buttons in Multiselect 6

Same name and namespace in other branches
  1. 5 multiselect.module \_html_for_buttons()

Provides html to display the buttons on the form.

1 call to _html_for_buttons()
multiselect_select_process in ./multiselect.module
Process an individual element.

File

./multiselect.module, line 300
Allows users to select multiple items in an easier way than the normal node-reference widget.

Code

function _html_for_buttons($fieldname) {
  $buttons_code = "<ul id=\"multiselect_btns" . "_" . $fieldname . "\" class=\"multiselect_btns\">\n<li class=\"multiselect_add\" id=\"" . $fieldname . "\"><a href=\"javascript:;\">Add</a></li>\n<li class=\"multiselect_remove\" id=\"" . $fieldname . "\"><a href=\"javascript:;\">Remove</a></li>\n</ul>";
  return $buttons_code;
}