class OGRulesDataUIGroup in Organic groups 7
UI that adds in the group options list.
Hierarchy
- class \RulesDataUI
- class \RulesDataUIText implements RulesDataDirectInputFormInterface
- class \RulesDataUIEntity
- class \OGRulesDataUIGroup
- class \RulesDataUIEntity
- class \RulesDataUIText implements RulesDataDirectInputFormInterface
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OGRulesDataUIGroup:: |
public static | function |
Implements RulesDataDirectInputFormInterface::inputForm(). Overrides RulesDataUIEntity:: |
|
OGRulesDataUIGroup:: |
public static | function | ||
RulesDataUI:: |
public static | function | Returns the data type and parameter information for the given arguments. | |
RulesDataUI:: |
public static | function | Renders the value with a label if an options list is available. | |
RulesDataUI:: |
public static | function | Provides the selection form for a parameter. | |
RulesDataUIEntity:: |
public static | function |
Overrides RulesDataUI::getDefaultMode(). Overrides RulesDataUIText:: |
3 |
RulesDataUIText:: |
public static | function |
Implements RulesDataDirectInputFormInterface::render(). Overrides RulesDataDirectInputFormInterface:: |
4 |