Comments on: Adding body classes based on Drupal role / user ID https://www.leewillis.co.uk/body-classes-drupal-role-user-id/ Mon, 16 May 2016 22:40:55 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: alfredo https://www.leewillis.co.uk/body-classes-drupal-role-user-id/#comment-932841 Mon, 16 May 2016 22:40:55 +0000 http://www.leewillis.co.uk/?p=481#comment-932841 This worked like a charm for me. I had to hide some fields from all others that were not admins and didn’t want to get too far in the weeds with access hooks and what not.

Used CSS.

]]>
By: Justin https://www.leewillis.co.uk/body-classes-drupal-role-user-id/#comment-8828 Mon, 24 Jun 2013 03:45:07 +0000 http://www.leewillis.co.uk/?p=481#comment-8828 In reply to Justin.

*a wrapper for the “drupal_clean_css_identifier” function I meant to say

]]>
By: Justin https://www.leewillis.co.uk/body-classes-drupal-role-user-id/#comment-8827 Mon, 24 Jun 2013 03:44:00 +0000 http://www.leewillis.co.uk/?p=481#comment-8827 Also check out https://api.drupal.org/api/drupal/includes!common.inc/function/drupal_html_class/7

Just a wrapper for this function, but it converts alpha characters to lower case too.

]]>
By: Matt https://www.leewillis.co.uk/body-classes-drupal-role-user-id/#comment-8539 Wed, 05 Jun 2013 06:55:09 +0000 http://www.leewillis.co.uk/?p=481#comment-8539 Thank you! Works great! 🙂

]]>