You are here

function tablefield_post_exceeds_max_input_vars in TableField 7.3

Check if $_POST contains more input variables than max_input_vars.

Return value

bool TRUE if $_POST request variable contains more input variables than the max_input_vars configuration on the server. FALSE otherwise.

1 call to tablefield_post_exceeds_max_input_vars()
tablefield_field_widget_form_validate in ./tablefield.module
Form validation callback.

File

./tablefield.module, line 2589
Provides a set of fields that can be used to store tabular data with a node.

Code

function tablefield_post_exceeds_max_input_vars() {
  $posted_vars = count($_POST, COUNT_RECURSIVE);
  $max_input_vars = ini_get('max_input_vars');
  return $posted_vars > $max_input_vars;
}