Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rlmumford to review GDPR fields module #11

Open
wants to merge 7 commits into
base: 7.x-1.x
Choose a base branch
from

Conversation

yanniboi
Copy link
Contributor

No description provided.

Copy link

@rlmumford rlmumford left a comment

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

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?

'length' => 32,
'description' => 'Entity bundle of field.',
),
'field_name' => array(

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;
}

Choose a reason for hiding this comment

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

New line

* @return array
* An array of arrays with information about all available panel contexts.
*/
function gdpr_fields_get_contexts() {

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.

/**
* Implements hook_menu().
*/
function gdpr_fields_menu() {

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.

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.

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();

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(

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

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

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