function homebox_named_columns in Homebox 7.2
Same name and namespace in other branches
- 6.3 homebox.admin.inc \homebox_named_columns()
- 6 homebox.admin.inc \homebox_named_columns()
- 6.2 homebox.admin.inc \homebox_named_columns()
- 7.3 homebox.admin.inc \homebox_named_columns()
Returns a keyed array containing regions/columns named base on cols
Return value
A keyed array like array(1 => 'Column 1', 2 => 'Column 2')
2 calls to homebox_named_columns()
- homebox_admin_display_form in ./
homebox.admin.inc - Generate main blocks administration form.
- template_preprocess_homebox_admin_display_form in ./
homebox.admin.inc - Process variables for homebox-admin-display.tpl.php.
File
- ./
homebox.admin.inc, line 957 - Homebox admin file, takes care admin interface for homebox
Code
function homebox_named_columns($cols) {
$columns = array();
for ($i = 1; $i <= $cols; $i++) {
$columns[$i] = t('Column !count', array(
'!count' => $i,
));
}
return $columns;
}