uw_virtual_site_homepage.features.field_base.inc 14.3 KB
Newer Older
1
<?php
Liam Morland's avatar
Liam Morland committed
2

3 4 5 6 7 8 9 10 11 12 13
/**
 * @file
 * uw_virtual_site_homepage.features.field_base.inc
 */

/**
 * Implements hook_field_default_field_bases().
 */
function uw_virtual_site_homepage_field_default_field_bases() {
  $field_bases = array();

14
  // Exported field_base: 'field_uw_credentials'.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
  $field_bases['field_uw_credentials'] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'field_uw_credentials',
    'indexes' => array(
      'format' => array(
        0 => 'format',
      ),
    ),
    'locked' => 0,
    'module' => 'text',
    'settings' => array(
      'max_length' => 255,
    ),
    'translatable' => 0,
    'type' => 'text',
  );

35
  // Exported field_base: 'field_uw_department'.
36
  $field_bases['field_uw_department'] = array(
37 38 39 40
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
41
    'field_name' => 'field_uw_department',
42 43 44 45 46 47 48 49 50 51 52 53 54 55
    'indexes' => array(
      'format' => array(
        0 => 'format',
      ),
    ),
    'locked' => 0,
    'module' => 'text',
    'settings' => array(
      'max_length' => 255,
    ),
    'translatable' => 0,
    'type' => 'text',
  );

56
  // Exported field_base: 'field_uw_email_homepage'.
57
  $field_bases['field_uw_email_homepage'] = array(
58 59 60 61
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
62
    'field_name' => 'field_uw_email_homepage',
63 64 65 66 67 68 69 70 71 72 73 74 75 76
    'indexes' => array(
      'format' => array(
        0 => 'format',
      ),
    ),
    'locked' => 0,
    'module' => 'text',
    'settings' => array(
      'max_length' => 255,
    ),
    'translatable' => 0,
    'type' => 'text',
  );

77
  // Exported field_base: 'field_uw_extension'.
78
  $field_bases['field_uw_extension'] = array(
79 80 81 82
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
83
    'field_name' => 'field_uw_extension',
84 85 86 87 88 89 90 91 92 93 94 95 96 97
    'indexes' => array(
      'format' => array(
        0 => 'format',
      ),
    ),
    'locked' => 0,
    'module' => 'text',
    'settings' => array(
      'max_length' => 255,
    ),
    'translatable' => 0,
    'type' => 'text',
  );

98
  // Exported field_base: 'field_uw_faculty_list_logo'.
99 100 101 102 103 104 105 106
  $field_bases['field_uw_faculty_list_logo'] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'field_uw_faculty_list_logo',
    'indexes' => array(
      'value' => array(
107
        0 => 'value',
108 109 110 111 112
      ),
    ),
    'locked' => 0,
    'module' => 'list',
    'settings' => array(
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
      'allowed_values' => array(
        1 => 'Site name (no logo)',
        'logo' => 'University of Waterloo',
        'ahs' => 'Applied Health Sciences',
        'ahs_Kinesiology' => 'Applied Health Sciences - Kinesiology',
        'ahs_PublicHealth' => 'Applied Health Sciences - Public Health',
        'ahs_Recreation_Lesiure' => 'Applied Health Sciences - Recreation and Leisure Studies',
        'Arts' => 'Arts',
        'Arts_Anthropology' => 'Arts - Anthropology',
        'Arts_Classical_Studies' => 'Arts - Classical Studies',
        'Arts_Drama_Speech_Communication' => 'Arts - Drama Speech Communication',
        'Arts_Economics' => 'Arts - Economics',
        'Arts_English_Language_Literature' => 'Arts - English Language Literature',
        'Arts_FineArts' => 'Arts - Fine Arts',
        'Arts_French' => 'Arts - French',
        'Arts_Germanic_Slavic_Studies' => 'Arts - Germanic Slavic Studies',
        'Arts_History' => 'Arts - History',
        'Arts_Philosophy' => 'Arts - Philosophy',
        'Arts_Political_Science' => 'Arts - Political Science',
        'Arts_Psychology' => 'Arts - Psychology',
        'Arts_Religious_Studies' => 'Arts - Religious Studies',
        'Arts_School_of_Accounting_and_Finance' => 'Arts - School of Accounting and Finance',
        'Arts_Sociology_and_Legal_Studies' => 'Arts - Sociology and Legal Studies',
        'Arts_Spanish_and_Latin_American_Studies' => 'Arts - Spanish and Latin American Studies',
        'Engineering' => 'Engineering',
        'Engineering_wordmark' => 'Engineering wordmark',
        'Engineering_Architecture' => 'Engineering - Architecture',
        'Engineering_Chemical_Engineering' => 'Engineering - Chemical Engineering',
        'Engineering_Civil_Environmental_Engineering' => 'Engineering - Civil Environmental Engineering',
        'Engineering_Electrical_Computer_Engineering' => 'Engineering - Electrical Computer Engineering',
        'Engineering_Management_Sciences' => 'Engineering - Management Sciences',
        'Engineering_Mechanical_Engineering' => 'Engineering - Mechanical Engineering',
        'Engineering_Systems_Design_Engineering' => 'Engineering - Systems Design Engineering',
        'Environment' => 'Environment',
        'Environment_Environment_Enterprise_Development' => 'Environment - Environment Enterprise Development',
        'Environment_Enviromental_Resources_and_Sustainability' => 'Environment - Enviromental Resources and Sustainability',
        'Environment_Geography_Environmental_and_Management' => 'Environment - Geography Environmental and Management',
        'Environment_Knowledge_Intergration' => 'Environment - Knowledge Intergration',
        'Environment_Planning' => 'Environment - Planning',
        'Mathematics' => 'Mathematics',
        'Math_Applied_Math' => 'Mathematics - Applied Math',
        'Math_Combinatorics_and_Optimization' => 'Mathematics - Combinatorics and Optimization',
        'Math_Computer_Science' => 'Mathematics - Computer Science',
        'Math_Pure_Math' => 'Mathematics - Pure Math',
        'Math_Statistics_Actuarial_Science' => 'Mathematics - Statistics Actuarial Science',
        'Science' => 'Science',
        'Science_Biology' => 'Science - Biology',
        'Science_Chemistry' => 'Science - Chemistry',
        'Science_Earth_and_Environmental_Science' => 'Science - Earth and Environmental Science',
        'Science_Optometry_and_Vision_Science' => 'Science - Optometry and Vision Science',
        'Sciecne_Pharmacy' => 'Science - Pharmacy',
        'Science_Physics_and_Astronomy' => 'Science - Physics and Astronomy',
        'conrad_grebel' => 'Conrad Grebel',
        'renison_university_college' => 'Renison University College',
        'st_jeromes_university' => 'St. Jerome’s University',
        'st_pauls' => 'St. Paul’s University College',
        'McMaster_University' => 'McMaster University',
        'University_of_Guelph' => 'University of Guelph',
        'Water_Institute' => 'Water Institute',
        'Western_University' => 'Western University',
        'Wilfrid_Laurier_University' => 'Wilfrid Laurier University',
        'Other' => 'Other',
      ),
176 177 178 179 180 181
      'allowed_values_function' => '',
    ),
    'translatable' => 0,
    'type' => 'list_text',
  );

182
  // Exported field_base: 'field_uw_homepage_banners'.
183
  $field_bases['field_uw_homepage_banners'] = array(
184
    'active' => 1,
185
    'cardinality' => -1,
186 187
    'deleted' => 0,
    'entity_types' => array(),
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
    'field_name' => 'field_uw_homepage_banners',
    'indexes' => array(
      'revision_id' => array(
        0 => 'revision_id',
      ),
      'value' => array(
        0 => 'value',
      ),
    ),
    'locked' => 0,
    'module' => 'field_collection',
    'settings' => array(
      'hide_blank_items' => 1,
      'hide_initial_item' => 0,
      'path' => '',
    ),
    'translatable' => 0,
    'type' => 'field_collection',
  );

208
  // Exported field_base: 'field_uw_homepage_banners_image'.
209 210 211 212 213 214
  $field_bases['field_uw_homepage_banners_image'] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'field_uw_homepage_banners_image',
215 216 217 218 219 220 221 222 223 224 225 226 227
    'indexes' => array(
      'fid' => array(
        0 => 'fid',
      ),
    ),
    'locked' => 0,
    'module' => 'image',
    'settings' => array(
      'default_image' => 0,
      'uri_scheme' => 'public',
    ),
    'translatable' => 0,
    'type' => 'image',
228
  );
229

230
  // Exported field_base: 'field_uw_homepage_banners_link'.
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258
  $field_bases['field_uw_homepage_banners_link'] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'field_uw_homepage_banners_link',
    'indexes' => array(),
    'locked' => 0,
    'module' => 'link',
    'settings' => array(
      'attributes' => array(
        'class' => '',
        'rel' => '',
        'target' => 'default',
      ),
      'display' => array(
        'url_cutoff' => 80,
      ),
      'enable_tokens' => 1,
      'title' => 'optional',
      'title_maxlength' => 128,
      'title_value' => '',
      'url' => 0,
    ),
    'translatable' => 0,
    'type' => 'link_field',
  );

259
  // Exported field_base: 'field_uw_office_hours'.
260
  $field_bases['field_uw_office_hours'] = array(
261 262 263 264
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
265
    'field_name' => 'field_uw_office_hours',
266 267 268 269 270 271 272 273 274 275 276 277
    'indexes' => array(
      'format' => array(
        0 => 'format',
      ),
    ),
    'locked' => 0,
    'module' => 'text',
    'settings' => array(),
    'translatable' => 0,
    'type' => 'text_long',
  );

278
  // Exported field_base: 'field_uw_office_location'.
279
  $field_bases['field_uw_office_location'] = array(
280 281 282 283
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
284
    'field_name' => 'field_uw_office_location',
285 286 287 288 289 290 291 292 293 294 295 296
    'indexes' => array(
      'format' => array(
        0 => 'format',
      ),
    ),
    'locked' => 0,
    'module' => 'text',
    'settings' => array(
      'max_length' => 255,
    ),
    'translatable' => 0,
    'type' => 'text',
297 298
  );

299
  // Exported field_base: 'field_uw_other_faculty'.
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317
  $field_bases['field_uw_other_faculty'] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'field_uw_other_faculty',
    'indexes' => array(
      'format' => array(
        0 => 'format',
      ),
    ),
    'locked' => 0,
    'module' => 'text',
    'settings' => array(
      'max_length' => 255,
    ),
    'translatable' => 0,
    'type' => 'text',
318 319
  );

320
  // Exported field_base: 'field_uw_phone_number'.
321
  $field_bases['field_uw_phone_number'] = array(
322 323 324 325
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
326
    'field_name' => 'field_uw_phone_number',
327 328 329 330 331 332 333 334 335 336 337 338 339 340
    'indexes' => array(
      'format' => array(
        0 => 'format',
      ),
    ),
    'locked' => 0,
    'module' => 'text',
    'settings' => array(
      'max_length' => 255,
    ),
    'translatable' => 0,
    'type' => 'text',
  );

341
  // Exported field_base: 'field_uw_profile_image'.
342
  $field_bases['field_uw_profile_image'] = array(
343 344 345 346
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
347
    'field_name' => 'field_uw_profile_image',
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362
    'indexes' => array(
      'fid' => array(
        0 => 'fid',
      ),
    ),
    'locked' => 0,
    'module' => 'image',
    'settings' => array(
      'default_image' => 0,
      'uri_scheme' => 'public',
    ),
    'translatable' => 0,
    'type' => 'image',
  );

363
  // Exported field_base: 'field_uw_site_description'.
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383
  $field_bases['field_uw_site_description'] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(
      0 => 'node',
    ),
    'field_name' => 'field_uw_site_description',
    'indexes' => array(
      'format' => array(
        0 => 'format',
      ),
    ),
    'locked' => 0,
    'module' => 'text',
    'settings' => array(),
    'translatable' => 0,
    'type' => 'text_with_summary',
  );

384
  // Exported field_base: 'field_uw_theme_settings'.
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406
  $field_bases['field_uw_theme_settings'] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'field_uw_theme_settings',
    'indexes' => array(
      'value' => array(
        0 => 'value',
      ),
    ),
    'locked' => 0,
    'module' => 'list',
    'settings' => array(
      'allowed_values' => array(
        'default' => 'University of Waterloo',
        'ahs' => 'Applied Health Science',
        'arts' => 'Arts',
        'engineering' => 'Engineering',
        'environment' => 'Environment',
        'math' => 'Math',
        'science' => 'Science',
407
        'cgc' => 'Conrad Grebel University College',
408 409 410 411 412 413 414 415 416 417
        'ren' => 'Renison University College',
        'stj' => 'St. Jerome\'s University',
        'stp' => 'St. Paul\'s University College',
      ),
      'allowed_values_function' => '',
    ),
    'translatable' => 0,
    'type' => 'list_text',
  );

418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463
  // Exported field_base: 'field_uw_twitter_type'.
  $field_bases['field_uw_twitter_type'] = array(
    'active' => 1,
    'cardinality' => 2,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'field_uw_twitter_type',
    'indexes' => array(
      'value' => array(
        0 => 'value',
      ),
    ),
    'locked' => 0,
    'module' => 'list',
    'settings' => array(
      'allowed_values' => array(
        'Homepage' => 'Home page',
        'Sidebar' => 'Sidebar',
      ),
      'allowed_values_function' => '',
    ),
    'translatable' => 0,
    'type' => 'list_text',
  );

  // Exported field_base: 'field_uw_twitter_username'.
  $field_bases['field_uw_twitter_username'] = array(
    'active' => 1,
    'cardinality' => 1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'field_uw_twitter_username',
    'indexes' => array(
      'format' => array(
        0 => 'format',
      ),
    ),
    'locked' => 0,
    'module' => 'text',
    'settings' => array(
      'max_length' => 255,
    ),
    'translatable' => 0,
    'type' => 'text',
  );

464
  // Exported field_base: 'og_group_ref'.
465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495
  $field_bases['og_group_ref'] = array(
    'active' => 1,
    'cardinality' => -1,
    'deleted' => 0,
    'entity_types' => array(),
    'field_name' => 'og_group_ref',
    'indexes' => array(
      'target_id' => array(
        0 => 'target_id',
      ),
    ),
    'locked' => 0,
    'module' => 'entityreference',
    'settings' => array(
      'handler' => 'og',
      'handler_settings' => array(
        'behaviors' => array(
          'og_behavior' => array(
            'status' => TRUE,
          ),
        ),
        'membership_type' => 'og_membership_type_default',
        'target_bundles' => array(),
      ),
      'handler_submit' => 'Change handler',
      'target_type' => 'node',
    ),
    'translatable' => 0,
    'type' => 'entityreference',
  );

496 497
  return $field_bases;
}