You are here

function mobile_codes_block_user_vcard_configure in Mobile Codes 6.2

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

File

includes/vcard.inc, line 37
vCard module integration

Code

function mobile_codes_block_user_vcard_configure($edit) {
  $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'),
  );
  ctools_include('export');
  foreach (ctools_export_crud_load_all('mobile_codes_presets') as $preset) {
    if (!$preset->disabled) {
      $form['preset']['#options'][$preset->name] = $preset->name;
    }
  }
  return $form;
}