Web Publishing Standards

U.S. Web Design Standards (Draft)
Open source UI components and visual style guide to create consistency and beautiful user experiences across U.S. federal government websites. Features a downloadable component which includes the fonts Source Sans Pro and Merriweather families.
https://playbook.cio.gov/designstandards/
https://playbook.cio.gov/designstandards/getting-started/

Reusable PHP Scripts and Code Snippets for Drupal 7

For checking a session user's role in an access-controlled data

//$roles_allowed_access = array("authenticated user", "administrator", "supervising manager");
$roles_allowed_access = array("administrator", "supervising manager"); //for production
//$roles_allowed_access = array("administrator"); //for debugging and testing
if (count(array_intersect($roles_allowed_access, $GLOBALS['user']->roles)) > 0 ) {
//role has passed access-control checking
} else {
//role has NOT passed access-control checking
}

For collapsible pieces of text. Needs collapsible text module https://www.drupal.org/project/collapse_text

<form name="Form_Name"><fieldset class='collapse-text-fieldset collapsible collapsed'><legend><span class='fieldset-legend'>Title For Collapsible Text</span></legend><div class='fieldset-wrapper'><div class='collapse-text-text'>
Collapsible text.
</div></div></fieldset></form>

Favorite Drupal Modules

Listed below are my favorite or must-have Drupal modules in order of my personal "priority".

  1. ctools https://www.drupal.org/project/ctools http://ftp.drupal.org/files/projects/ctools-7.x-1.9.tar.gz

    ctools is like air in Drupal. Almost every other sensibly useful module needs it because its "originator" is possibly as much a visionary as the originator of Drupal itself.

  2. module_filter https://www.drupal.org/project/module_filter http://ftp.drupal.org/files/projects/module_filter-7.x-2.0.tar.gz

    We need to put some sanity in our modules management. module_filter replaces the default Drupal module manager to make it more Web 2.0-oriented and more sensibly usable. When I say Web 2.0, I basically mean more intensive use of Javascript for faster and more dynamic interfacing. In my book, the pre-Web 2.0 Internet uses much less Javascript, much less dynamism and much less AJAX.

  3. admin_menu https://www.drupal.org/project/admin_menu http://ftp.drupal.org/files/projects/admin_menu-7.x-3.0-rc5.tar.gz

    admin_menu replaces the default Drupal administration toolbar to make the administrative menu more Web 2.0-oriented as well.

Other favored modules are:

Welcome to Loloy D On Drupal 7

Hi and welcome to Loloy D on Drupal 7. My Internet name is Loloy D and I have set up this website to talk about my exploits and discoveries on Drupal 7. This site has been set up with the target audience of technical Drupal 7 site builders in mind. Feel free to browse around and contribute.

Subscribe to Loloy D On Drupal 7 RSS