function paragraphs_pack_options_list in Paragraphs pack 7
Implements hook_options_list().
File
- includes/
paragraphs_pack.fields.inc, line 113 - Implements custom fields: PP_FIELD_TYPE_VIEW_MODE.
Code
function paragraphs_pack_options_list($field, $instance, $entity_type, $entity) {
$options = array();
switch ($field['type']) {
case PP_FIELD_TYPE_VIEW_MODE:
$options = paragraphs_pack_get_allowed_view_modes($instance);
break;
}
return $options;
}