function form_fields($form, $columns) { $handle = $this->_user_handle(); if ($this->template === 'user' && !empty($form['fields'])) { foreach ($form['fields'] as $key => &$field) { if ($key === 'questions') { $url = qa_path('user-activity/questions/' . $handle); $field['value'] .= ' — <a href="' . $url . '">All actions by ' . qa_html($handle) . ' ›</a>'; } else { if ($key === 'answers') { $url = qa_path('user-activity/answers/' . $handle); $field['value'] .= ' — <a href="' . $url . '">All reactions by ' . qa_html($handle) . ' ›</a>'; } } } } qa_html_theme_base::form_fields($form, $columns); }