You are here

function _remove_zero_values in Contextual View Modes 7

_remove_zero_values Helper function to remove items from an assoc array with value == 0

Parameters

$input the input array:

Return value

boolean true if value is valid | false if value is 0

2 string references to '_remove_zero_values'
contextual_view_modes_settings_submit in ./contextual_view_modes.admin.inc
[contextual_view_modes_settings_submit description]
_has_disabled_types in ./contextual_view_modes.admin.inc
Checks the form_state array against the saved enabled content types for disabled types

File

./contextual_view_modes.admin.inc, line 253
Contextual View Modes Administrative Screens

Code

function _remove_zero_values($input) {
  if ($input === 0 || $input === FALSE || strlen($input) == 0 || $input === "0") {
    return FALSE;
  }
  return TRUE;
}