You are here

function flickr_metadata_block_validate in Flickr 7

Validate user input on 'minimum metadata width'.

1 string reference to 'flickr_metadata_block_validate'
flickr_block_configure in block/flickr_block.module
Implements hook_block_configure().

File

block/flickr_block.module, line 622
The Flickr block module

Code

function flickr_metadata_block_validate($element) {
  if (!is_numeric($element['#value']) || $element['#value'] < 0) {
    form_set_error('flickr_block_{$delta}_min_title', t('<strong>Minimum image width (metadata)</strong>: Set a width from 0 to 999 px.'));
  }
}