/** * Display the reassignfiles list on the item form. * This simply adds a heading to the output */ public function hookAdminItemsFormFiles() { $localReassign = (int) (bool) get_option('reassign_files_local_reassign'); if ($localReassign) { echo '<h3>' . __('Add Files from Other Items') . '</h3>'; $itemId = metadata('item', 'id'); $fileNames = SELF::reassignFiles_getFileNames($itemId); // from helpers/ReassignFilesFunctions.php echo common('reassignfileslist', array("fileNames" => $fileNames), 'index'); } }