Skip to content

rlmumford to review GDPR fields module#11

Open
yanniboi wants to merge 7 commits into
7.x-1.xfrom
feature/d7/fields
Open

rlmumford to review GDPR fields module#11
yanniboi wants to merge 7 commits into
7.x-1.xfrom
feature/d7/fields

Conversation

@yanniboi

Copy link
Copy Markdown
Contributor

No description provided.

@rlmumford rlmumford left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like >60% of this is due to be re-written on switching to entity wrappers. There's also of functionality breaking debugging code and empty functions left in.

@@ -0,0 +1,7 @@
<?php

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this file if it is empty?

Comment thread modules/gdpr_fields/gdpr_fields.install Outdated
'length' => 32,
'description' => 'Entity bundle of field.',
),
'field_name' => array(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider changing to word 'property' as I understand this is more about properties than fields.

);

return $schema;
} No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New line

Comment thread modules/gdpr_fields/gdpr_fields.module Outdated
* @return array
* An array of arrays with information about all available panel contexts.
*/
function gdpr_fields_get_contexts() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function isn't doing anything - remove.
Also never called.

Comment thread modules/gdpr_fields/gdpr_fields.module Outdated
/**
* Implements hook_menu().
*/
function gdpr_fields_menu() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

<?php

/**
* Base class for export UI.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment doesn't look right to me.

var $options = array();

/**
* Fake constructor.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a constructor and not fake?

}

function gdpr_fields_gdpr_entity_field_get_children($plugin, $parent) {
$instances = field_info_instances();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switch to properties?

* @file
* Contains the gdpr_entity_property plugin definition.
*/
$plugin = array(

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yanniboi is there a reason that these are split into two different plugins?

@@ -0,0 +1,254 @@
<?php

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yanniboi This looks like it would be really useful elsewhere but not here if we're switching to properties. Is there any other need for this that I am missing?

@rlmumford

Copy link
Copy Markdown

I'm pretty sure Andrews commit adds a functional error. It removes the variable $is _sub_list because it was unused. The variable need to be there and the if statement a few lines below needs to test is_sub_list rather than is_list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants