You are here

function blockreference_field_instance_settings_form in Block reference 7.2

Implements hook_field_instance_settings_form().

File

./blockreference.field.inc, line 246

Code

function blockreference_field_instance_settings_form($field, $instance) {
  $form['blockreference_modules'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Modules defining blocks that can be referenced'),
    '#options' => _blockreference_get_block_modules(),
    '#default_value' => _blockreference_get_block_modules_from_field($instance),
    '#description' => t('If no modules are selected, blocks from all modules will be available.'),
  );
  return $form;
}