You are here

function _give_zero_values in Contextual View Modes 7

_give_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

1 string reference to '_give_zero_values'
contextual_view_modes_settings_submit in ./contextual_view_modes.admin.inc
[contextual_view_modes_settings_submit description]

File

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

Code

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