You are here

function views_foundation_columns in Views Foundation 7

Same name and namespace in other branches
  1. 7.4 views_foundation.module \views_foundation_columns()

Return a array containing words representing the numbers.

Parameters

int $amount: The integer indicating the number of keys to be returned.

Return value

array Array of strings contains words.

1 call to views_foundation_columns()
views_foundation_plugin_style_clearing::options_form in view/views_foundation_plugin_style_clearing.inc
Provide a form for setting options.

File

./views_foundation.module, line 53
Views Foundation module file.

Code

function views_foundation_columns($amount = 12) {
  $words = array(
    'one',
    'two',
    'three',
    'four',
    'five',
    'six',
    'seven',
    'eight',
    'nine',
    'ten',
    'eleven',
    'twelve',
  );
  $options = array_slice($words, 0, $amount);
  return drupal_map_assoc($options);
}