public function OgVariableRealm::getAllKeys in OG Variables 7
Implementation of VariableRealmControllerInterface::getAllKeys().
File
- ./
og_variables.class.inc, line 29 - Variable Realm controller.
Class
- OgVariableRealm
- Controller for Language realms.
Code
public function getAllKeys() {
$realms = array();
foreach (og_get_all_group($this->entity_type) as $entity_id) {
$entity = current(entity_load($this->entity_type, array(
$entity_id,
)));
if (entity_access('update', $this->entity_type, $entity)) {
$label = entity_label($this->entity_type, $entity);
$realms[$this
->makeRequestKey($this->entity_type, $entity_id)] = $label;
}
}
return $realms;
}