摘要:
function createNode($data = array(), $filepath = NULL) { //private function,not necessary to read/copy //the $node = new stdClass; $node->type = "story"; $node->nid = 0; $node->uid = 1; $node... 阅读全文
摘要:
function upload_form() { $form = array(); // If this #attribute is not present, upload will fail on submit $form['#attributes']['enctype'] = 'multipart/form-data'; $form['file_upload'] = array( '#title' => t('Upload file'), '#type' => 阅读全文