久久精品水蜜桃av综合天堂,久久精品丝袜高跟鞋,精品国产肉丝袜久久,国产一区二区三区色噜噜,黑人video粗暴亚裔

System settings form()

來自站長百科
Zhou3158討論 | 貢獻(xiàn)2010年7月11日 (日) 17:09的版本
跳轉(zhuǎn)至: 導(dǎo)航、? 搜索

導(dǎo)航: 上一頁 | 首頁 | DedeCMS | 帝國CMS | Xoops | SupeSite | PHPCMS | PHP168 | Joomla


system_settings_form($form) --很重要的一個函數(shù),在設(shè)置后臺表單時候經(jīng)常用到。主要用于為一個表單添加按鈕和設(shè)置前綴.

參數(shù)

$form 一個包含表單結(jié)構(gòu)的關(guān)聯(lián)數(shù)組。

返回值

表單結(jié)構(gòu)。

實(shí)例

<?php
function onthisdate_admin() {
  $form = array();

  $form['onthisdate_maxdisp'] = array(
    '#type' => 'textfield',
    '#title' => t('Maximum number of links'),
    '#default_value' => variable_get('onthisdate_maxdisp', 3),
    '#size' => 2,
    '#maxlength' => 2,
    '#description' => t("The maximum number of links to display in the block."),
    '#required' => TRUE,
  );

  return system_settings_form($form);
}
?>