You are here

function reference_table_formatter_load_plugin in Reference Table Formatter 7

Load a "reference type" plugin.

Parameters

$id: The plugin ID to load.

$field: The field definition.

$instance: The field instance.

$settings: The settings array from the field API.

Return value

object A loaded plugin.

3 calls to reference_table_formatter_load_plugin()
reference_table_formatter_field_formatter_settings_form in ./reference_table_formatter.field.inc
Implements hook_field_formatter_settings_form().
reference_table_formatter_field_formatter_settings_summary in ./reference_table_formatter.field.inc
Implements hook_field_formatter_settings_summary().
reference_table_formatter_field_formatter_view in ./reference_table_formatter.field.inc
Implements hook_field_formatter_view().

File

./reference_table_formatter.module, line 36
Format reference fields as tables of information.

Code

function reference_table_formatter_load_plugin($id, $field, $instance, $settings) {
  ctools_include('plugins');
  $plugin = ctools_get_plugins('reference_table_formatter', 'reference_types', $id);
  $class = ctools_plugin_get_class($plugin, 'handler');
  return new $class($field, $instance, $settings);
}