You are here

function related_blog_block_configure in Util 6.3

Same name and namespace in other branches
  1. 7 contribs/related_blog/related_blog.module \related_blog_block_configure()

Function for related_blog_block(op = 'configure').

1 call to related_blog_block_configure()
related_blog_block in contribs/related_blog/related_blog.module
Implements hook_block();

File

contribs/related_blog/related_blog.module, line 88
Provides block to show blog of node's author.

Code

function related_blog_block_configure($delta = 0) {
  $form = array();
  switch ($delta) {
    case 'related_blog':
      $form['types'] = array(
        '#type' => 'checkboxes',
        '#title' => t('Show on these content types'),
        '#default_value' => variable_get('related_blog_types', array()),
        '#options' => node_get_types('names'),
        '#attributes' => array(
          'class' => 'container-inline',
        ),
      );
      break;
  }
  return $form;
}