You are here

function views_table_add_data in Views (for Drupal 7) 5

Helper function to make table creation a little easier. It adds the necessary data to the $table array.

3 calls to views_table_add_data()
views_table_add_field in ./views.module
Helper function to make table creation a little easier. It adds the necessary data to the $table array.
views_table_add_filter in ./views.module
Helper function to make table creation a little easier. It adds the necessary data to the $table array.
views_table_add_sort in ./views.module
Helper function to make table creation a little easier. It adds the necessary data to the $table array.

File

./views.module, line 1122

Code

function views_table_add_data(&$table, $type, $name, $label, $help, $others = array()) {
  $table[$type][$name]['name'] = $label;
  $table[$type][$name]['help'] = $help;
  foreach ($others as $key => $value) {
    $table[$type][$name][$key] = $value;
  }
}