在nodeapi_example这个模块中,不停的看到
#default_value = variable_set('''''),然后后续代码调用这个值,
但没有看到设置这个变量的值,请问这个是什么原因呢?
<?php
$form['rating']['nodeapi_example_node_type'] = array(
'#type' => 'radios',
'#title' => t('NodeAPI Example Rating'),
'#default_value' => variable_get('nodeapi_example_node_type_' . $form['#node_type']->type, FALSE),
'#options' => array(
FALSE => t('Disabled'),
TRUE => t('Enabled'),
),
'#description' => t('Should this node have a rating attached to it?'),
);
?>