Module 在Drupal 7中更改表单字段样式

Module 在Drupal 7中更改表单字段样式,module,drupal-7,Module,Drupal 7,我目前正在创建一个Drupal7模块 我有一个文本字段: $form['gestionvideos_videos']['input'] = array( '#type' => 'textfield', '#prefix' => '<div id="customSearch">', '#suffix' => '</div>', '#attributes' => array('onkeyu

我目前正在创建一个Drupal7模块

我有一个文本字段:

$form['gestionvideos_videos']['input'] = array(
        '#type' => 'textfield',
        '#prefix' => '<div id="customSearch">',
        '#suffix' => '</div>',
        '#attributes' => array('onkeyup' => 'search();'),
      );
$form['gestionvideos\u videos']['input']=array(
“#键入”=>“文本字段”,
“#前缀”=>”,
“#后缀”=>”,
“#attributes”=>array('onkeyup'=>'search();'),
);
我想在它前面放一个图像,然后在我的容器的右边对齐它们。我不知道该怎么做

感谢您的帮助

$form['gestionvideos\u videos']['input']=array(
$form['gestionvideos_videos']['input'] = array(
    '#type' => 'textfield',
    '#prefix' => '<img src="/image.jpg" align="left" width="20px" height="20px"/><div id="customSearch">',
    '#suffix' => '</div>',
    '#attributes' => array('onkeyup' => 'search();'),
  );
“#键入”=>“文本字段”, “#前缀”=>”, “#后缀”=>”, “#attributes”=>array('onkeyup'=>'search();'), );