You are here

function form_builder_block_view in Form Builder 7

Same name and namespace in other branches
  1. 6 form_builder.module \form_builder_block_view()
  2. 7.2 form_builder.module \form_builder_block_view()

Implements hook_block_view().

File

./form_builder.module, line 137
form_builder.module Generic form building framework and user interface.

Code

function form_builder_block_view($delta = '') {
  $block = array();
  if ($delta == 'fields' && form_builder_active_form()) {
    module_load_include('inc', 'form_builder', 'includes/form_builder.admin');
    $block['content'] = form_builder_field_palette();
  }
  return $block;
}