function panels_flexible_default_panels in Panels 6.2
Same name and namespace in other branches
- 5.2 layouts/flexible.inc \panels_flexible_default_panels()
5 calls to panels_flexible_default_panels()
- panels_flexible_panels in layouts/
flexible/ flexible.inc - Define the actual list of columns and rows for this flexible panel.
- panels_flexible_settings_form in layouts/
flexible/ flexible.inc - panels_flexible_settings_submit in layouts/
flexible/ flexible.inc - panels_flexible_settings_validate in layouts/
flexible/ flexible.inc - theme_panels_flexible in layouts/
flexible/ flexible.inc - This function uses heredoc notation to make it easier to convert to a template.
File
- layouts/
flexible/ flexible.inc, line 21
Code
function panels_flexible_default_panels() {
return array(
'percent_width' => 100,
'rows' => 3,
'width_type' => '%',
'row_1' => array(
'columns' => 1,
'width_1' => 100,
'names' => array(
t('Top'),
),
),
'row_2' => array(
'columns' => 3,
'width_1' => 25,
'width_2' => 50,
'width_3' => 25,
'names' => array(
t('Left'),
t('Middle'),
t('Right'),
),
),
// row 3
'row_3' => array(
'columns' => 1,
'width_1' => 100,
'names' => array(
t('Bottom'),
),
),
'sidebars' => array(
'left' => FALSE,
'left_width' => 200,
'right' => FALSE,
'right_width' => 200,
'width_type' => 'px',
),
);
}