function handleOption($option, $currentValue) { $list = get_AnyFile_suffixes(); ?> <ul class="customchecklist"> <?php generateUnorderedListFromArray($list, $list, 'AnyFile_file_', false, false, false, NULL, NULL, true); ?> </ul> <?php }
/** * Standard option interface * * @return array */ function getOptionsSupported() { $listi = array(); foreach (get_AnyFile_suffixes() as $suffix) { $listi[$suffix] = 'AnyFile_file_list_' . $suffix; } if ($suffix = getOption('AnyFile_file_new')) { setOption('AnyFile_file_new', ''); $listi[$suffix] = 'AnyFile_file_list_' . $suffix; setOption('AnyFile_file_list_' . $suffix, 1); } return array(gettext('Watermark default images') => array('key' => 'AnyFile_watermark_default_images', 'type' => OPTION_TYPE_CHECKBOX, 'desc' => gettext('Check to place watermark image on default thumbnail images.')), gettext('Handled files') => array('key' => 'AnyFile_file_list', 'type' => OPTION_TYPE_CHECKBOX_UL, 'checkboxes' => $listi, 'desc' => gettext('File suffixes to be handled.')), gettext('Add file suffix') => array('key' => 'AnyFile_file_new', 'type' => OPTION_TYPE_TEXTBOX, 'desc' => gettext('Add a file suffix to be handled by the plugin'))); }