limit - Limit for entity list.
section - The current active section.
upload_sections - Valid upload sections.
+ internal_name - Internal name of the input field
The function should return $value as:
items - An array of ElggEntities
// @todo trigger for all right now. If we categorize these later we can trigger
// for certain categories.
$sections = trigger_plugin_hook('embed_get_sections', 'all', NULL, array());
- $upload_sections = trigger_plugin_hook('embed_get_upload_sections', 'all', NULL, array());
- asort($sections, SORT_LOCALE_STRING);
- asort($upload_sections, SORT_LOCALE_STRING);
+ $upload_sections = trigger_plugin_hook('embed_get_upload_sections', 'all', NULL, array());
+
+ elgg_sort_3d_array_by_value($sections, 'name');
+ elgg_sort_3d_array_by_value($upload_sections, 'name');
$active_section = get_input('active_section', NULL);
$internal_name = get_input('internal_name', NULL);
break;
}
+ // exit because this is in a modal display.
exit;
}
background-color:#666666;
border:1px solid #666666;
color:white;
+}
+
+/* embed web services */
+.embed_disabled {
+ background-color: red;
+}
+
+.embed_warning {
+ background-color: yellow;
+}
+
+.embed_good {
+ background-color: green;
}
\ No newline at end of file
'offset' => $offset,
'limit' => $limit,
'section' => $active_section,
- 'upload_sections' => $upload_sections
+ 'upload_sections' => $upload_sections,
+ 'internal_name' => $internal_name
);
// allow full override for this section