You are here

function featured_content_block in Featured Content 6

Same name and namespace in other branches
  1. 6.2 featured_content.module \featured_content_block()

Implementation of hook_block().

File

./featured_content.module, line 144
Featured Content module for created related & featured content blocks.

Code

function featured_content_block($op = 'list', $delta = NULL, $edit = NULL) {
  $function = 'featured_content_' . $op;
  if (function_exists($function)) {
    return $function($delta, $edit);
  }
  else {

    // less used operation functions are stored in include
    module_load_include('inc', 'featured_content', 'featured_content.admin');
    if (function_exists($function)) {
      return $function($delta, $edit);
    }
  }
}