You are here

function flickr_block_show_n_validate in Flickr 6

Validate user input on 'number shown'.

1 string reference to 'flickr_block_show_n_validate'
flickr_block in block/flickr_block.module
Implements hook_block().

File

block/flickr_block.module, line 460

Code

function flickr_block_show_n_validate($element) {
  if (!is_numeric($element['#value']) || $element['#value'] < 1) {
    form_set_error('flickr_block_{$delta}_show_n', t('Set a number from 1 to 99.'));
  }
}