function views_array_key_plus

cis7 views.module views_array_key_plus($array)
cle7 views.module views_array_key_plus($array)
elmsmedia7 views.module views_array_key_plus($array)
icor7 views.module views_array_key_plus($array)
meedjum_blog7 views.module views_array_key_plus($array)
mooc7 views.module views_array_key_plus($array)

Adds one to each key of the array.

For example array(0 => 'foo') would be array(1 => 'foo').

2 calls to views_array_key_plus()
views_plugin_display::init in sites/all/modules/ulmus/views/plugins/views_plugin_display.inc
views_ui_rearrange_filter_form_submit in sites/all/modules/ulmus/views/includes/admin.inc
Submit handler for rearranging form

File

sites/all/modules/ulmus/views/views.module, line 2427
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_array_key_plus($array) {
  $keys = array_keys($array);
  rsort($keys);
  foreach ($keys as $key) {
    $array[$key + 1] = $array[$key];
    unset($array[$key]);
  }
  asort($array);
  return $array;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.