You are here

function rb_misc_conditions_form in Rules Bonus Pack 7

Configuration form for selecting condition component and its input data.

1 string reference to 'rb_misc_conditions_form'
rb_misc_condition_get_plugin_info in plugins/access/rb_misc_conditions.inc
Gets plugin information for a single component.

File

plugins/access/rb_misc_conditions.inc, line 49
Plugin to create access plugins from Rules condition components.

Code

function rb_misc_conditions_form($form, &$form_state, $conf) {

  // Fetch the name of the rules component. We will need this when evaluating,
  // to know which condition component to load.
  $plugin_name = explode(':', $form_state['plugin']['name']);

  // Set a non-visible value in the form. Then carry on.
  $form['settings']['component_name'] = array(
    '#type' => 'value',
    '#value' => $plugin_name[1],
  );
  return $form;
}