You are here

function activity_comment_form in Activity 6

Returns a commenting form, keyed to a particular activity ID.

1 string reference to 'activity_comment_form'
theme_activity in ./activity.module
Theme function for individual activity message.

File

./activity.module, line 1114
activity.module

Code

function activity_comment_form(&$form_state, $aid) {
  $form['aid'] = array(
    '#type' => 'hidden',
    '#value' => $aid,
  );
  $form['activity-comment'] = array(
    '#rows' => 1,
    '#type' => 'textarea',
    '#wysiwyg' => FALSE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Comment'),
    '#wysiwyg' => FALSE,
  );
  return $form;
}