asort($sections, SORT_LOCALE_STRING);
asort($upload_sections, SORT_LOCALE_STRING);
$active_section = get_input('active_section', NULL);
+ $internal_name = get_input('internalname', NULL);
echo elgg_view('embed/embed', array(
'sections' => $sections,
'active_section' => $active_section,
- 'upload_sections' => $upload_sections
+ 'upload_sections' => $upload_sections,
+ 'internal_name' => $internal_name
));
break;
$sections = elgg_get_array_value('sections', $vars, array());
$active_section = elgg_get_array_value('active_section', $vars, array_shift(array_keys($sections)));
$upload_sections = elgg_get_array_value('upload_sections', $vars, array());
+$internal_name = elgg_get_array_value('internal_name', $vars, array());
if (!$sections) {
$content = elgg_echo('embed:no_sections');
// insert embed codes
$('.embed_data').click(function() {
var embed_code = $(this).data('embed_code');
- elggEmbedInsertContent(embed_code);
+ elggEmbedInsertContent(embed_code, '<?php echo addslashes($internal_name); ?>');
});
// tabs