You are here

function hook_hosting_site_site_list_filters_alter in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 site/hosting_site.api.php \hook_hosting_site_site_list_filters_alter()
  2. 7.3 site/hosting_site.api.php \hook_hosting_site_site_list_filters_alter()

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';
  }
}