function commerce_cp_summary_settings_form in Commerce Cart Pane 7
Same name in this branch
- 7 commerce_cp.api.php \commerce_cp_summary_settings_form()
- 7 commerce_cp.module \commerce_cp_summary_settings_form()
Settings form of Summary pane
2 string references to 'commerce_cp_summary_settings_form'
- commerce_cp_get_system_panes in ./
commerce_cp.module - Get a list of system cart panes: 1) Line items table (output) 2) Summary (Order total) 3) Submit buttons (actions)
- hook_commerce_cp_info in ./
commerce_cp.api.php - Defines cart panes available for use on cart page.
File
- ./
commerce_cp.api.php, line 76 - This file contains no working PHP code; it exists to document hooks in the standard Drupal manner.
Code
function commerce_cp_summary_settings_form() {
$form = array();
//
$form['cp_textfield1'] = array(
'#type' => 'textfield',
'#title' => t('Textfield 1'),
'#default_value' => variable_get('cp_textfield1', ''),
);
$form['update_view'] = array(
'#type' => 'submit',
'#value' => t('Update view'),
'#submit' => array(
'commerce_cp_summary_settings_form_submit',
),
);
return $form;
}