User login


Block cache constants and other block-making tips

./modules/block/block.api.php:48: * - DRUPAL_CACHE_PER_ROLE (default): The block can change depending on the
./modules/block/block.api.php:50: * - DRUPAL_CACHE_PER_USER: The block can change depending on the user
./modules/block/block.api.php:53: * DRUPAL_CACHE_PER_ROLE is not sufficient.
./modules/block/block.api.php:54: * - DRUPAL_CACHE_PER_PAGE: The block can change depending on the page
./modules/block/block.api.php:56: * - DRUPAL_CACHE_GLOBAL: The block is the same for every user on every

How make double rounded borders with CSS3 (and using an extra div)

I couldn't find a way to do this in straight CSS3.

A light colored border, a white (transparent) space in between, and a blue background, all rounded.

Also, note that by using CSS3, we are oh-so-subtly telling Internet Explorer users (before IE9, anyway) that we don't care that the site doesn't look as pretty as it does to people sensible enough to use good web browsers.

First, let's get the extra HTML out of the way.

Put edit block links on blocks for easy use by administrators

UPDATE: The Zen Theme does this so, so much better, so we'll be stealing from it as soon as we get the chance.

Provide edit links to block and view blocks for admin users by modifying block template files in your theme.

This is very rudimentary but works for the most common blocks. I'm sure it can be generalized to work for all blocks no matter what module defines them.

Create edit-block.tpl.php

Syndicate content