You are here

function classy_paragraphs_options_list in Classy paragraphs 7

Implements hook_options_list().

File

includes/classy_paragraphs.fields.inc, line 80
Implements custom field: cp_list (CLASSY_PARAGRAPHS_FIELD_TYPE_LIST).

Code

function classy_paragraphs_options_list($field, $instance, $entity_type, $entity) {
  $options = array();
  switch ($field['type']) {
    case CLASSY_PARAGRAPHS_FIELD_TYPE_LIST:
      $options = classy_paragraphs_get_options($field, $instance);
      break;
  }
  return $options;
}