You are here

class OGRulesDataUIGroup in Organic groups 7

UI that adds in the group options list.

Hierarchy

Expanded class hierarchy of OGRulesDataUIGroup

2 string references to 'OGRulesDataUIGroup'
OGRulesDataUIGroup::inputForm in ./og.rules.inc
Implements RulesDataDirectInputFormInterface::inputForm().
og_rules_data_info_alter in ./og.rules.inc
Implements hook_rules_data_info_alter().

File

./og.rules.inc, line 58
Rules integration for the Organic groups module.

View source
class OGRulesDataUIGroup extends RulesDataUIEntity {
  public static function inputForm($name, $info, $settings, RulesPlugin $element) {

    // Add an options list of all groups if there is none yet.
    if (!isset($info['options list'])) {
      $info['options list'] = array(
        'OGRulesDataUIGroup',
        'optionsList',
      );
    }
    return parent::inputForm($name, $info, $settings, $element);
  }
  public static function optionsList() {
    return og_label_multiple(og_get_all_group());
  }

}

Members

Namesort descending Modifiers Type Description Overrides
OGRulesDataUIGroup::inputForm public static function Implements RulesDataDirectInputFormInterface::inputForm(). Overrides RulesDataUIEntity::inputForm
OGRulesDataUIGroup::optionsList public static function
RulesDataUI::getTypeInfo public static function Returns the data type and parameter information for the given arguments.
RulesDataUI::renderOptionsLabel public static function Renders the value with a label if an options list is available.
RulesDataUI::selectionForm public static function Provides the selection form for a parameter.
RulesDataUIEntity::getDefaultMode public static function Overrides RulesDataUI::getDefaultMode(). Overrides RulesDataUIText::getDefaultMode 3
RulesDataUIText::render public static function Implements RulesDataDirectInputFormInterface::render(). Overrides RulesDataDirectInputFormInterface::render 4