Source View: swfupload_success_handler

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: apply_filters( "hook_name", "what_to_filter" ).

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1536                post_params : {
1537                     <?php echo $post_params_str; ?>
1538                },
1539                file_size_limit : "<?php echo $max_upload_size; ?>b",
1540                file_dialog_start_handler : fileDialogStart,
1541                file_queued_handler : fileQueued,
1542                upload_start_handler : uploadStart,
1543                upload_progress_handler : uploadProgress,
1544                upload_error_handler : uploadError,
1545                upload_success_handler : <?php echo apply_filters( 'swfupload_success_handler', 'uploadSuccess' ); ?>,
1546                upload_complete_handler : uploadComplete,
1547                file_queue_error_handler : fileQueueError,
1548                file_dialog_complete_handler : fileDialogComplete,
1549                swfupload_pre_load_handler: swfuploadPreLoad,
1550                swfupload_load_failed_handler: swfuploadLoadFailed,
1551                custom_settings : {
1552                     degraded_element_id : "html-upload-ui", // id of the element displayed when swfupload is unavailable
1553                     swfupload_element_id : "flash-upload-ui" // id of the element displayed when swfupload is available
1554                },