You are here

function blockreference_options_list in Block reference 7.2

Same name and namespace in other branches
  1. 7 blockreference.module \blockreference_options_list()

Implements hook_options_list().

File

./blockreference.module, line 388

Code

function blockreference_options_list($field, $instance, $entity_type, $entity) {
  $context = array(
    'type' => 'options_list',
    'entity' => $entity,
  );
  $blocks = _blockreference_find_blocks($instance, '', $context);
  return _blockreference_options($blocks);
}