You are here

function parallax_block_updated_values in Parallax Toolkit 7.2

Same name and namespace in other branches
  1. 7.3 parallax_block/parallax_block.module \parallax_block_updated_values()

Function tests if any of the values are modified from the original value.

1 call to parallax_block_updated_values()
parallax_block_form_submit in parallax_block/parallax_block.module
Helper function: additional submit callback for block configuration pages.

File

parallax_block/parallax_block.module, line 183
Enable Parallax effect for any block created by the user.

Code

function parallax_block_updated_values($items, $form, $form_state) {
  foreach ($items as $key => $value) {
    if (isset($form_state['values'][$key]) && $form['settings']['parallax'][$key]['#default_value'] != $form_state['values'][$key] && user_access('administer blocks')) {
      return TRUE;
    }
  }
  return FALSE;
}