function opigno_live_meetings_form_alter in Opigno Moxtra App 7
File
- modules/
opigno_live_meetings/ opigno_live_meetings.module, line 286
Code
function opigno_live_meetings_form_alter(&$form, &$form_state, $form_id) {
// https://www.drupal.org/node/1788748 bug}
if ($form_id == "live_meeting_node_form") {
if (isset($form['field_class_ref']) && !isset($form['field_class_ref'][LANGUAGE_NONE]['add_more'])) {
$form['field_class_ref'][LANGUAGE_NONE]['#title'] = t('Class restriction');
$form['field_class_ref'][LANGUAGE_NONE][0]['default']['#title'] = t('Your groups');
$form['field_class_ref'][LANGUAGE_NONE][0]['default']['#description'] = t('Associate this content with groups you belong to.');
$form['field_class_ref'][LANGUAGE_NONE][0]['admin']['#title'] = t('Other groups');
$form['field_class_ref'][LANGUAGE_NONE][0]['admin'][0]['target_id']['#title'] = t('Other groups');
$form['field_class_ref'][LANGUAGE_NONE][0]['admin']['#description'] = t('As groups administrator, associate this content with groups you do <em>not</em> belong to.');
$form['field_class_ref'][LANGUAGE_NONE][0]['admin'][0]['target_id']['#description'] = t('As groups administrator, associate this content with groups you do <em>not</em> belong to.');
}
}
}