You are here

function hook_classy_paragraphs_list_options in Classy paragraphs 7

Describe the classes that will be used in the drop-down.

Parameters

$options:

$field:

$instance:

Return value

array An associative array of all available classes, keyed by the class name, and then the human-readable name, with the following keys:

  • class: The class name which will be used in HTML.
  • class label: The human-readable name of the class.

See also

classy_paragraphs_get_options()

1 function implements hook_classy_paragraphs_list_options()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

classy_paragraphs_test_classy_paragraphs_list_options in tests/classy_paragraphs_test.module
Implements hook_classy_paragraphs_list_options().
1 invocation of hook_classy_paragraphs_list_options()
classy_paragraphs_get_options in ./classy_paragraphs.module
Get list of options from other modules.

File

./classy_paragraphs.api.php, line 23
API documentation for the classy_paragraphs module.

Code

function hook_classy_paragraphs_list_options($options, $field, $instance) {
  $options['loud'] = t('Loud');
  $options['soft'] = t('Soft');
  return $options;
}