function hook_hosting_site_site_list_filters_alter

7.x-3.x hosting_site.api.php hook_hosting_site_site_list_filters_alter(&$filters)

Alters which filters are allowed to be used on the hosting site list.

The list of sites can be filtered via the query string, and to avoid nasty security exploits you must explicitly define what people can filter by.

Parameters

$filters: The array of filters defined by other modules.

See also

hosting_site_get_possible_site_list_filters()

hosting_sites()

hook_hosting_site_site_list_filters()

Related topics

File

site/hosting_site.api.php, line 93
Hooks provided by the hosting site module.

Code

function hook_hosting_site_site_list_filters_alter(&$filters) {
  // Add a filter based on another module.
  if (in_array('other_filter', $filters, TRUE)) {
    $filters[] = 'my_filter';
  }
}