11 add_action(
'gform_entries_first_column_actions', array( $this,
'add_edit_link' ), 10, 5 );
14 add_action(
'admin_head', array( $this,
'add_edit_script') );
27 if ( ! class_exists(
'GFForms' ) ) {
31 if ( ! in_array( GFForms::get_page(), array(
'entry_list',
'entry_detail' ) ) ) {
36 jQuery( document ).ready(
function( $ ) {
37 $(
'.edit_entry a').click(
function(e) {
39 $( e.target ).parents(
'form')
40 .prepend(
'<input name="screen_mode" type="hidden" value="edit" />')
41 .attr(
'action', $(e.target).attr(
'href') )
60 'page' =>
'gf_entries',
63 'lid' => (
int)$lead[
"id"],
64 'screen_mode' =>
'edit',
68 <span
class=
"edit edit_entry">
70 <a title=
"<?php esc_attr_e( 'Edit this entry', 'gk-gravityview'); ?>" href=
"<?php echo esc_url( add_query_arg( $params, admin_url( 'admin.php?page='.$query_string ) ) ); ?>"><?php esc_html_e(
'Edit',
'gk-gravityview' ); ?></a>
Actions to be performed on the Gravity Forms Entries list screen.
add_edit_script()
When clicking the edit link, convert the Entries form to go to the edit screen.
if(empty( $created_by)) $form_id
add_edit_link( $form_id=NULL, $field_id=NULL, $value=NULL, $lead=array(), $query_string=NULL)
Add an Edit link to the GF Entry actions row.
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
new GravityView_GF_Entries_List