You are here

function block_class_attributes in Block Class 5

Same name and namespace in other branches
  1. 6.2 block_class.module \block_class_attributes()
  2. 6 block_class.module \block_class_attributes()
2 calls to block_class_attributes()
block_class in ./block_class.module
block_class_form_alter in ./block_class.module

File

./block_class.module, line 24

Code

function block_class_attributes($block) {
  $ret = db_fetch_object(db_query('SELECT css_class FROM {block_class} WHERE module = "%s" AND delta = "%s"', $block->module, $block->delta));
  if ($ret !== FALSE) {
    return $ret;
  }
  $undef = (object) NULL;
  $undef->css_class = '';
  return $undef;
}