Drupal Api.

  • Friday, July 06, 2012
  • By Gunawan Probo Swandono
  • 0 Comments



    <?php
      $form
['actions'] = array('#type' => 'actions');
     
$form['actions']['submit'] = array(
       
'#type' => 'submit',
       
'#value' => t('Save'),
      );
     
$form['actions']['delete'] = array(
       
'#type' => 'button',
       
'#value' => t('Delete'),
      );
     
$form['actions']['cancel'] = array(
       
'#markup' => l(t('Cancel'), 'foo/bar'),
    );
?>



Start to learn drupal Api... Many code to learn. But it funny :D. 

You Might Also Like

0 comments

Note: Only a member of this blog may post a comment.