function fc_get_plugin in Field Complete 7
3 calls to fc_get_plugin()
- fcComplete::completeness in ./
fc.inc - fcIncomplete::process in fc_incomplete/
fc_incomplete.inc - _fc_form_field_ui_field_edit_form_alter in ./
fc.form.inc - Implements hook_field_widget_settings_form().
File
- ./
fc.module, line 26 - Field Complete - Provides field-based completeness for any entity.
Code
function fc_get_plugin($type) {
static $plugins;
if (empty($plugins)) {
ctools_include('plugins');
$plugins = ctools_get_plugins('fc', 'fields');
}
return !empty($plugins[$type]) ? $plugins[$type] : $plugins['default'];
}