[development] Blocks and page context

E.J. Zufelt lists at zufelt.ca
Sat Apr 24 02:06:33 UTC 2010


Good evening Earl,

Thanks for the comment.

I really enjoyed the context and content discussion on Saturday at the Core Developer Summit.  Hoping to see a drupal_butler object in drupal 8.  Are any discussions about this happening online, if so, where can I get involved and contribute?

Thanks again,
Everett Zufelt
http://zufelt.ca

Follow me on Twitter
http://twitter.com/ezufelt

View my LinkedIn Profile
http://www.linkedin.com/in/ezufelt



On 2010-04-23, at 8:27 PM, Earl Miles wrote:

> E.J. Zufelt wrote:
>> Good evening,
>> 
>> Thanks for this.
>> 
>> I took a look at user_access() but wasn't sure that it would do what I needed.  I have to admit to being a newbie as far as Drupal development goes.  I normally work on cor accessibility.
>> 
>> As far as user_access() I see that it can accept a user object, but that it also needs me to pass a permission to check.  What permission would I be checking to see if the current system path can be accessed?  This is why menu_get_item() seemed more appropriate.  It would be nice if there was a function like menu_get_item() that accepted the user object like user_access() does.  Perhaps I'll ad an issue as a feature request for d8 if this doesn't already exist in some hidden corner of d6.
> 
> Context is a major weakness in Drupal right now and there is currently a lot of discussion on what to do about that in D8. As for what you can do right now, your global $user hack is probably the only thing you can actually do. it's not elegant at all, but in a contrib module...be very very careful you don't change the $user identity once you're done (so make sure all possible failure scenarios are covered).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100423/32a9cc10/attachment.html 


More information about the development mailing list