<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Good evening Earl,<div><br></div><div>Thanks for the comment.</div><div><br></div><div>I really enjoyed the context and content discussion on Saturday at the Core Developer Summit. &nbsp;Hoping to see a drupal_butler object in drupal 8. &nbsp;Are any discussions about this happening online, if so, where can I get involved and contribute?</div><div><br></div><div>Thanks again,<br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: medium; "><span class="Apple-style-span" style="font-size: 12px; "><div>Everett Zufelt<br></div><div><a href="http://zufelt.ca">http://zufelt.ca</a></div><div><br></div><div>Follow me on Twitter<br><a href="http://twitter.com/ezufelt">http://twitter.com/ezufelt</a><br><br>View my LinkedIn Profile<br><a href="http://www.linkedin.com/in/ezufelt">http://www.linkedin.com/in/ezufelt</a></div><div><br></div></span></span></div></div></span></div></span></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On 2010-04-23, at 8:27 PM, Earl Miles wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>E.J. Zufelt wrote:<br><blockquote type="cite">Good evening,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks for this.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I took a look at user_access() but wasn't sure that it would do what I needed. &nbsp;I have to admit to being a newbie as far as Drupal development goes. &nbsp;I normally work on cor accessibility.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">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. &nbsp;What permission would I be checking to see if the current system path can be accessed? &nbsp;This is why menu_get_item() seemed more appropriate. &nbsp;It would be nice if there was a function like menu_get_item() that accepted the user object like user_access() does. &nbsp;Perhaps I'll ad an issue as a feature request for d8 if this doesn't already exist in some hidden corner of d6.<br></blockquote><br>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).<br></div></blockquote></div><br></div></body></html>