Hi,
How stupidly gives you the replies. what am i asked and what you have sent. I just made request for new password because my account has been blocked unfortunately. And you are sending me rules and regulations of sending an email,is it necessary right now.
reg....... Anil Karna
________________________________ From: "support-request@drupal.org" support-request@drupal.org To: support@drupal.org Sent: Wednesday, 25 July 2012 5:30 PM Subject: support Digest, Vol 115, Issue 36
Send support mailing list submissions to support@drupal.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.drupal.org/mailman/listinfo/support or, via email, send a message with subject or body 'help' to support-request@drupal.org
You can reach the person managing the list at support-owner@drupal.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of support digest..."
Today's Topics:
1. Entity exposed to view but 'date' type field are not present (Juraj Chlebec) 2. Unblock my account (Anil Reddy)
----------------------------------------------------------------------
Message: 1 Date: Tue, 24 Jul 2012 17:10:56 +0200 From: Juraj Chlebec havran@gmail.com Subject: [support] Entity exposed to view but 'date' type field are not present To: support@drupal.org Message-ID: CAEXz2Pa+F3LdORCrWDggyVh3UpRiqsGtZ_O3=TMBfU=ZDPs43g@mail.gmail.com Content-Type: text/plain; charset="iso-8859-1"
Hi,
I have same problem as here: http://drupal.org/node/1021466#comment-4766902
Callbacks are only used by wrappershttp://drupal.org/node/1021466#comment-4766902 Posted by JvE http://drupal.org/user/892998 on *July 22, 2011 at 10:18am*
Note that the "getter callback" and "setter callback" functions are *only*used by Entity metadata wrappers. Not by entity_load or Views and such.
You can not use these to convert a different timestamp format in a database to a timestamp for use with the 'date' type unless you specifically create a wrapper for each of your entity instances.
I tried to get my (int)yyyymmdd values from the database to show up in Views as dates and mistakenly thought I could use the "getter callback" for the transformation. Example of when callback is and is not used: <?php $entity = entity_load('myentity', array(1)); print $entity->day; // this gives 20110721 (from the database) $item = entity_metadata_wrapper('myentity', $entity); print $item->day->value(); // this gives 1311206400 (from the "getter callback") ?>
In Views my day shows up as "08/21/1970 - 19:18" ... so if someone can point me in the right direction to get my "days" as timestamps, I'm all ears.
How can i use "getter callback" to convert field from database stored as 'date' to timestamp for using for view? Or is there other way how to achieve this goal?
Juraj
There's an advertisement of a woman ordering a shake and fries, and when she's informed by the person behind the counter that she's in a library, she repeats her order in a whisper.
Sent from my iPhone
On Jul 25, 2012, at 8:49 AM, Anil Reddy anilreddykarna@yahoo.in wrote:
Hi,
How stupidly gives you the replies. what am i asked and what you have sent. I just made request for new password because my account has been blocked unfortunately. And you are sending me rules and regulations of sending an email,is it necessary right now.
reg....... Anil Karna
From: "support-request@drupal.org" support-request@drupal.org To: support@drupal.org Sent: Wednesday, 25 July 2012 5:30 PM Subject: support Digest, Vol 115, Issue 36
Send support mailing list submissions to support@drupal.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.drupal.org/mailman/listinfo/support or, via email, send a message with subject or body 'help' to support-request@drupal.org
You can reach the person managing the list at support-owner@drupal.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of support digest..."
Today's Topics:
- Entity exposed to view but 'date' type field are not present (Juraj Chlebec)
- Unblock my account (Anil Reddy)
Message: 1 Date: Tue, 24 Jul 2012 17:10:56 +0200 From: Juraj Chlebec havran@gmail.com Subject: [support] Entity exposed to view but 'date' type field are not present To: support@drupal.org Message-ID: CAEXz2Pa+F3LdORCrWDggyVh3UpRiqsGtZ_O3=TMBfU=ZDPs43g@mail.gmail.com Content-Type: text/plain; charset="iso-8859-1"
Hi,
I have same problem as here: http://drupal.org/node/1021466#comment-4766902
Callbacks are only used by wrappershttp://drupal.org/node/1021466#comment-4766902 Posted by JvE http://drupal.org/user/892998 on *July 22, 2011 at 10:18am*
Note that the "getter callback" and "setter callback" functions are *only*used by Entity metadata wrappers. Not by entity_load or Views and such.
You can not use these to convert a different timestamp format in a database to a timestamp for use with the 'date' type unless you specifically create a wrapper for each of your entity instances.
I tried to get my (int)yyyymmdd values from the database to show up in Views as dates and mistakenly thought I could use the "getter callback" for the transformation. Example of when callback is and is not used:
<?php $entity = entity_load('myentity', array(1)); print $entity->day; // this gives 20110721 (from the database) $item = entity_metadata_wrapper('myentity', $entity); print $item->day->value(); // this gives 1311206400 (from the "getter callback") ?>
In Views my day shows up as "08/21/1970 - 19:18" ... so if someone can point me in the right direction to get my "days" as timestamps, I'm all ears.
How can i use "getter callback" to convert field from database stored as 'date' to timestamp for using for view? Or is there other way how to achieve this goal?
Juraj
-- Juraj Chlebec aka Havran http://www.svoji.sk
On Wed, Jul 25, 2012 at 8:49 AM, Anil Reddy anilreddykarna@yahoo.in wrote:
Hi,
How stupidly gives you the replies. what am i asked and what you have sent. I just made request for new password because my account has been blocked unfortunately. And you are sending me rules and regulations of sending an email,is it necessary right now.
We cannot help you here. We do not have access to your "account". What account are you talking about? If it is the one for drupal.org then click the "I forgot my password" link to request a new one.