You are here

function flickrfield_flickrid_process in Flickr 6

1 string reference to 'flickrfield_flickrid_process'
flickrfield_elements in field/flickrfield.module

File

field/flickrfield.module, line 200
Defines a Flickr field type.

Code

function flickrfield_flickrid_process($element, $edit, $form_state, $form) {
  $element['flickrid'] = array(
    '#type' => 'textfield',
    '#title' => $element['#title'],
    '#description' => $element['#description'],
    '#required' => $element['#required'],
    '#field_prefix' => t('Flickr ID: '),
    '#default_value' => !empty($element['#value']['flickrid']) ? $element['#value']['flickrid'] : '',
    '#size' => 20,
    '#maxlength' => 20,
    '#attributes' => array(
      'class' => 'flickrfield_flickrid',
    ),
  );
  return $element;
}