GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
edit_link.php
Go to the documentation of this file.
1 <?php
2 
4 
5 $view_id = $gravityview_view->getViewId();
6 
7 extract( $gravityview_view->getCurrentField() );
8 
9 // Only show the link to logged-in users.
11  return;
12 }
13 
14 $link_text = empty( $field_settings['edit_link'] ) ? __('Edit Entry', 'gravityview') : $field_settings['edit_link'];
15 
16 $link_atts = empty( $field_settings['new_window'] ) ? '' : 'target="_blank"';
17 
18 $output = apply_filters( 'gravityview_entry_link', GravityView_API::replace_variables( $link_text, $form, $entry ) );
19 
21 
static replace_variables($text, $form=array(), $entry=array())
Alias for GravityView_Merge_Tags::replace_variables()
Definition: class-api.php:102
$field_settings['content']
Definition: custom.php:27
static check_user_cap_edit_entry($entry, $view_id=0)
checks if user has permissions to edit a specific entry
gravityview_get_link($href= '', $anchor_text= '', $atts=array())
Generate an HTML anchor tag with a list of supported attributes.
static getInstance($passed_post=NULL)
$entry
Definition: notes.php:27
static get_edit_link($entry, $view_id, $post_id=null, $field_values= '')
The edit entry link creates a secure link with a nonce.