code: public String button(String href, String target, String image, String label, int type, boolean useCustomImage) {
  
          if (useCustomImage) {
              // search the picture in the "custom pics" folder
              return button(href, target, image, label, type, getPicsUri());
          } else {
              // search the picture in the common "buttons" folder
              return button(href, target, image, label, type);
          }
      }
docs: Generates a button for the OpenCms editor.<p>
  
  @param href the href link for the button, if none is given the button will be disabled
  @param target the href link target for the button, if none is given the target will be same window
  @param image the image name for the button, skin path will be automatically added as prefix
  @param label the label for the text of the button
  @param type 0: image only (default), 1: image and text, 2: text only
  @param useCustomImage if true, the button has to be placed in the editors "custom pics" folder
  
  @return a button for the OpenCms editor