0
Forms API의 양식 컨트롤에 ID가 있습니까? (예를 들어) $ 양식 [ 'ID'] [ 'myphoto_button'] 위의 샘플 내 버튼의 ID를 식별 할 수Drupal 7 양식 API에서 ID 확인
function myid_user_page_form(){
$form = array();
$form['id'] = array(
'#type' => 'fieldset',
'#title' => t('ID Information'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['id']['myphoto_button'] = array(
'#type' => 'button',
'#value' => '...',
'#attributes' => array(
'onclick' => "myphoto_options();",),
);
return $form;
}
이 매우 간단 초보자의 질문에 대한 죄송하지만 방법 : 아래 내 샘플 코드는?
. com/questions/146357/identify-form-control-id-in-drupal-7-forms-api) – Clive