- $this->elementStart('form', array('method' => 'post',
- 'id' => 'form_tag_user',
- 'class' => 'form_settings',
- 'name' => 'tagprofile',
- 'action' => common_local_url('tagprofile', array('id' => $this->profile->id))));
-
- $this->elementStart('fieldset');
- $this->element('legend', null, _('Tag user'));
- $this->hidden('token', common_session_token());
- $this->hidden('id', $this->profile->id);
-
- $user = common_current_user();
-
- $this->elementStart('ul', 'form_data');
- $this->elementStart('li');
-
- $tags = Profile_tag::getTagsArray($user->id, $this->profile->id, $user->id);
- $this->input('tags', _('Tags'),
- ($this->arg('tags')) ? $this->arg('tags') : implode(' ', $tags),
- _('Tags for this user (letters, numbers, -, ., and _), comma- or space- separated'));
- $this->elementEnd('li');
- $this->elementEnd('ul');
- $this->submit('save', _('Save'));
- $this->elementEnd('fieldset');
- $this->elementEnd('form');
-
- Event::handle('EndShowTagProfileForm', array($this, $this->profile));