You are here

function flickr_title_block_validate in Flickr 7

Validate user input on 'minimum title width'.

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

File

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

Code

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