function rb_cck_condition_has_content_form in Rules Bonus Pack 6
Configuration form for 'rb_cck_condition_has_content'.
File
- ./
rb_cck.module, line 370 - Functions for extending CCK field management with Rules.
Code
function rb_cck_condition_has_content_form($settings, &$form) {
$form['settings']['field'] = array(
'#type' => 'select',
'#title' => t('Field to check'),
'#options' => rb_cck_get_fields(array(
'all',
)),
'#default_value' => isset($settings['field']) ? $settings['field'] : NULL,
'#description' => t('If the field is non-empty, according to CCK, this
condition will be TRUE.'),
);
}