Skip to content

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;
} No newline at end of file

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.

4 participants