access control

26
Jul
2010
Grayside

Spaces Integrating a CCK Field

I wanted to make a CCK Field available only when a given feature was enabled. It turns out it’s really easy.

CCK comes with a hook_field_access() hook (see content_access()). Any implementation of this function that returns FALSE for a given field results in that field being denied to the user.

07
Dec
2009
Grayside

Public Facing Site through Secured Syndication

When you need to stack content access mechanisms together in Drupal, things can get pretty messy. When you add Organic Groups to the mix, it gets pretty wild. I’ve been faced more than once with the challenge of building a site that would be 90% internal, and 10% public. Unfortunately, than 10% of public content represents 50% of the site’s complexity, especially when configuring around the settings and functionality required for a nice Intranet.

Subscribe to RSS - access control