You are here

function og_subgroups_context_condition_node_below_og::condition_values in Subgroups for Organic groups 6

Condition values

File

modules/og_subgroups_context/plugins/og_subgroups_context_condition_node_below_og.inc, line 12

Class

og_subgroups_context_condition_node_below_og
Enable OG Subgroups to trigger a condition based on node's position below the OG defined in the condition.

Code

function condition_values() {
  og_subgroups_include('form');

  // Load the options with hierarchy indents
  $values = og_subgroups_group_select_options();

  // Remove the default first option (no group)
  if (isset($values[0])) {
    unset($values[0]);
  }
  return $values;
}