You are here

function mobile_codes_block_user_vcard_configure in Mobile Codes 7.2

Same name and namespace in other branches
  1. 6.2 includes/vcard.inc \mobile_codes_block_user_vcard_configure()

vCard block configuration form.

File

includes/vcard.inc, line 72
vCard module integration

Code

function mobile_codes_block_user_vcard_configure() {
  $form = array();
  $form['preset'] = array(
    '#type' => 'select',
    '#title' => t('Mobile Codes preset'),
    '#options' => array(),
    '#default_value' => variable_get('mobile_codes_block_user_vcard_preset', 'block_user_vcard'),
  );
  foreach (mobile_codes_presets_load_all() as $preset) {
    $form['preset']['#options'][$preset->name] = $preset->name;
  }
  return $form;
}