function nd_plugins_display_form in Node displays 6
Add plugins to display overview form.
Parameters
array $form The display form.:
array $nd_display_settings Current display settings.:
1 call to nd_plugins_display_form()
- nd_display_overview_form in includes/
nd.display.inc - Menu callback; presents a listing of fields display settings for a content type.
File
- includes/
nd.display.inc, line 109 - Display overview form.
Code
function nd_plugins_display_form(&$form, $nd_display_settings) {
$plugins = variable_get('nd_plugin_settings', array());
if (!empty($plugins)) {
$form['#plugins'] = TRUE;
$form['#plugin_keys'] = array();
}
foreach ($plugins as $key => $plugin) {
if (isset($plugin['filename'])) {
require_once $plugin['filename'];
}
$function = $plugin['form_callback'];
$plugin_form = $function($form, $nd_display_settings);
$form['#plugin_keys'][] = $key;
}
}