Skip to content

Commit

Permalink
Docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkatz committed Sep 29, 2015
1 parent 197e107 commit f856f63
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 4 additions & 3 deletions includes/extensions/edit-entry/class-edit-entry-render.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ function process_save() {
$this->after_update();

/**
* Perform an action after the entry has been updated using Edit Entry
*
* @action `gravityview/edit_entry/after_update` Perform an action after the entry has been updated using Edit Entry
* @param array $form Gravity Forms form array
* @param string $entry_id Numeric ID of the entry that was updated
*/
Expand Down Expand Up @@ -526,7 +525,9 @@ public function edit_entry_form() {
* @param string $edit_entry_title Modify the "Edit Entry" title
* @param GravityView_Edit_Entry_Render $this This object
*/
echo esc_attr( apply_filters('gravityview_edit_entry_title', __('Edit Entry', 'gravityview'), $this ) );
$edit_entry_title = apply_filters('gravityview_edit_entry_title', __('Edit Entry', 'gravityview'), $this );

echo esc_attr( $edit_entry_title );
?></span>
</h2>

Expand Down
9 changes: 9 additions & 0 deletions templates/fields/checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@
extract( $gravityview_view->getCurrentField() );

if( in_array( $field['type'], array( 'radio', 'checkbox' ) ) && !empty( $entry[ $field_id ] ) ) {

/**
* @filter `gravityview_field_tick` Change the output for a checkbox "check" symbol. Default is dashicons-yes icon
* @see https://developer.wordpress.org/resource/dashicons/#yes
* @param string $output HTML span with `dashicons dashicons-yes` class
* @param array $entry Gravity Forms entry array
* @param array $field GravityView field array
*/
$output = apply_filters( 'gravityview_field_tick', '<span class="dashicons dashicons-yes"></span>', $entry, $field);

} else {
$output = gravityview_get_field_value( $entry, $field_id, $display_value );
}
Expand Down

0 comments on commit f856f63

Please sign in to comment.