function disableAll(array $options)
{
if (!_elgg_is_valid_options_for_batch_operation($options, 'metadata')) {
return false;
}
$this->cache->invalidateByOptions($options);
// if we can see hidden (disabled) we need to use the offset
// otherwise we risk an infinite loop if there are more than 50
$inc_offset = access_get_show_hidden_status();
$options['metastring_type'] = 'metadata';
return _elgg_batch_metastring_based_objects($options, 'elgg_batch_disable_callback', $inc_offset);
}