Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
i have problem to get a value from my custom user field i read this issue https://github.com/signalpoint/DrupalGap/issues/641 but still confused me i just can get the Drupal.user.uid or Drupal.user.name only as an object. ex i have the custom field value :
$account->field_nama_lengkap['und'][0]['value'];
so how to get that value in drupalgap i tried to get with "Drupal.user.field_nama_lengkap" but i get undefine
thank
Comments
Comment #2
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedThis comment has the code you need to put in a custom Drupal module: https://github.com/signalpoint/DrupalGap/issues/641#issuecomment-150949553
Once you do that, the Drupal.user object will be fully loaded and available to you in DrupalGap, after the System Connect call.
Comment #3
imunklovarian CreditAttribution: imunklovarian commentedthere are 2 comments whic one
or
Comment #4
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedWhen you follow the link, Github/your-browser should auto scroll you to the comment that I linked directly, issue comment 150949553
If not, it's the first chunk of code mentioned in your comment above.