public function QuickEditEditorSelector::getEditorAttachments in Quick Edit 7
Implements QuickEditEditorSelectorInterface::getEditorAttachments().
Overrides QuickEditEditorSelectorInterface::getEditorAttachments
File
- includes/
QuickEditEditorSelector.php, line 83
Class
- QuickEditEditorSelector
- Selects an in-place editor (an Editor plugin) for a field.
Code
public function getEditorAttachments(array $editor_ids) {
$attachments = array();
$editor_ids = array_unique($editor_ids);
// Editor plugins' attachments.
foreach ($editor_ids as $editor_id) {
$editor_plugin = _quickedit_get_editor_plugin($editor_id);
$attachments[$editor_id] = $editor_plugin
->getAttachments();
// Allows contrib to declare additional dependencies for the editor.
drupal_alter('quickedit_editor_attachments', $attachments[$editor_id], $editor_id);
}
return drupal_array_merge_deep_array($attachments);
}