* clear_all_plugin_settings() added.
* get_entity_relationships() supports inverse relationships. #1472.
* can_write_to_container() can be overridden with the container_permissions_check hook. #1164 (part 2).
+ * Deprecated search_for_*().
+ * Deprecated search_list*().
Services API:
* Separated user and api authenticate processing
register_plugin_hook('permissions_check:metadata','all','recursive_delete_permissions_check');
register_plugin_hook('gc','system','entities_gc');
-
- register_plugin_hook('search','all','search_list_entities_by_name');
}
/** Register the import hook */
register_plugin_hook('entity:icon:url', 'all', 'default_entity_icon_hook', 1000);
/** Register init system event **/
-register_elgg_event_handler('init','system','entities_init');
\ No newline at end of file
+register_elgg_event_handler('init','system','entities_init');
* @param int $offset Offset.
* @param string $order_by The order.
* @param boolean $count Whether to return the count of results or just the results.
+ * @deprecated 1.7
*/
function search_for_group($criteria, $limit = 10, $offset = 0, $order_by = "", $count = false) {
+ elgg_log('search_for_group() was deprecated in 1.7.', 'WARNING');
global $CONFIG;
$criteria = sanitise_string($criteria);
/**
* Returns a formatted list of groups suitable for injecting into search.
- *
+ * @deprecated 1.7
*/
function search_list_groups_by_name($hook, $user, $returnvalue, $tag) {
+ elgg_log('search_list_groups_by_name() was deprecated in 1.7.', 'WARNING');
// Change this to set the number of groups that display on the search page
$threshold = 4;
* @param string $tag Search criteria
* @param int $limit The number of entities to display on a page
* @return string The list in a form suitable to display
+ * @deprecated 1.7
*/
function list_group_search($tag, $limit = 10) {
+ elgg_log('list_group_search() was deprecated in 1.7.', 'WARNING');
$offset = (int) get_input('offset');
$limit = (int) $limit;
$count = (int) search_for_group($tag, 10, 0, '', true);
* @param int $offset Offset.
* @param string $order_by The order.
* @param boolean $count Whether to return the count of results or just the results.
+ * @deprecated 1.7
*/
function search_for_object($criteria, $limit = 10, $offset = 0, $order_by = "", $count = false) {
+ elgg_log('search_for_object was deprecated in 1.7.', 'WARNING');
global $CONFIG;
$criteria = sanitise_string($criteria);
/**
* Returns a formatted list of objects suitable for injecting into search.
+ * @deprecated 1.7
*
*/
function search_list_objects_by_name($hook, $user, $returnvalue, $tag) {
+ elgg_log('search_list_objects_by_name was deprecated in 1.7.', 'WARNING');
+
// Change this to set the number of users that display on the search page
$threshold = 4;
}
register_elgg_event_handler('init', 'system', 'objects_init', 0);
-register_plugin_hook('unit_test', 'system', 'objects_test');
\ No newline at end of file
+register_plugin_hook('unit_test', 'system', 'objects_test');
* @param int $offset Offset.
* @param string $order_by The order.
* @param boolean $count Whether to return the count of results or just the results.
+ * @deprecated 1.7
*/
function search_for_site($criteria, $limit = 10, $offset = 0, $order_by = "", $count = false) {
+ elgg_log('search_for_site() was deprecated in 1.7.', 'WARNING');
global $CONFIG;
$criteria = sanitise_string($criteria);
* @param int $offset Offset.
* @param string $order_by The order.
* @param boolean $count Whether to return the count of results or just the results.
+ * @deprecated 1.7
*/
function search_for_user($criteria, $limit = 10, $offset = 0, $order_by = "", $count = false) {
+ elgg_log('search_for_user() was deprecated in 1.7.', 'WARNING');
global $CONFIG;
$criteria = sanitise_string($criteria);
* @param string $tag Search criteria
* @param int $limit The number of entities to display on a page
* @return string The list in a form suitable to display
+ * @deprecated 1.7
*/
function list_user_search($tag, $limit = 10) {
+ elgg_log('list_user_search() deprecated in 1.7', 'WARNING');
$offset = (int) get_input('offset');
$limit = (int) $limit;
$count = (int) search_for_user($tag, 10, 0, '', true);
/**
* Returns a formatted list of users suitable for injecting into search.
- *
+ * @deprecated 1.7
*/
function search_list_users_by_name($hook, $user, $returnvalue, $tag) {
+ elgg_log('search_list_users_by_name() was deprecated in 1.7', 'WARNING');
// Change this to set the number of users that display on the search page
$threshold = 4;
* @link http://elgg.org/
*/
+var_dump("arg");
+
$entities = $vars['results']['entities'];
$count = $vars['results']['count'] - count($entities);
* @subpackage Core\r
* @author Curverider Ltd\r
* @link http://elgg.org/\r
+ * @deprecated 1.7\r
*/\r
+elgg_log('view groups/search/finishblurb was deprecated in 1.7', 'WARNING');\r
+\r
if ($vars['count'] > $vars['threshold']) {\r
\r
?>\r
* @subpackage Core\r
* @author Curverider Ltd\r
* @link http://elgg.org/\r
+ * @deprecated 1.7\r
*/\r
+elgg_log('view groups/search/startblurb was deprecated in 1.7', 'WARNING');\r
?>\r
\r
<div class="contentWrapper">\r
<?php\r
echo sprintf(elgg_echo("group:search:startblurb"),$vars['tag']);\r
?>\r
-</div>
\ No newline at end of file
+</div>\r
* @subpackage Core\r
* @author Curverider Ltd\r
* @link http://elgg.org/\r
+ * @deprecated 1.7\r
*/\r
\r
+elgg_log('view user/search/finishblurb was deprecated in 1.7', 'WARNING');\r
+\r
if ($vars['count'] > $vars['threshold']) {\r
\r
?>\r
?></a></div>\r
<?php\r
\r
-}
\ No newline at end of file
+}\r
* @package Elgg\r
* @subpackage Core\r
* @author Curverider Ltd\r
+ * @deprecated 1.7\r
* @link http://elgg.org/\r
*/\r
+\r
+elgg_log('view user/search/startblurb was deprecated in 1.7', 'WARNING');\r
+\r
?>\r
<div class="contentWrapper">\r
<?php\r
echo sprintf(elgg_echo("user:search:startblurb"),$vars['tag']);\r
\r
?>\r
-</div>
\ No newline at end of file
+</div>\r