20 if (isset(
$vars[
'options_values'])) {
21 if (!is_array(
$vars[
'options_values']) || empty(
$vars[
'options_values'])) {
33 'entity_type' => null,
34 'entity_subtype' => null,
35 'container_guid' => null,
63 }
else if (empty(
$vars[
'options_values']) || !is_array(
$vars[
'options_values'])) {
70 $vars[
'value'] = $options_values_ids[0];
77 if (!isset(
$vars[
'options_values'])) {
81 if (!isset(
$vars[
'disabled'])) {
82 $vars[
'disabled'] =
false;
elgg_get_default_access(\ElggUser $user=null, array $input_params=[])
Gets the default access permission.
const ACCESS_DEFAULT
Controls access levels on entities, metadata, and annotations.
elgg_get_write_access_array(int $user_guid=0, bool $flush=false, array $input_params=[])
Returns an array of access permissions that the user is allowed to save content with.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
elgg_get_readable_access_level(int $entity_access_id)
Return the name of an ACCESS_* constant or an access collection, but only if the logged in user has w...
if($container instanceof ElggGroup &&$container->guid!=elgg_get_page_owner_guid()) $key
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.