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

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
/**
 * @file
 * uw_virtual_site_homepage.features.conditional_fields.inc
 */

/**
 * Implements hook_conditional_fields_default_fields().
 */
function uw_virtual_site_homepage_conditional_fields_default_fields() {
  $items = array();

  $items["node:uw_virtual_site_homepage:0"] = array(
    'entity' => 'node',
    'bundle' => 'uw_virtual_site_homepage',
    'dependent' => 'field_uw_department',
    'dependee' => 'field_uw_faculty_list_logo',
    'options' => array(
      'state' => 'visible',
      'condition' => 'value',
      'grouping' => 'AND',
      'effect' => 'show',
      'effect_options' => array(),
      'element_view' => array(
        1 => 1,
        2 => 2,
        5 => 0,
        3 => 0,
        4 => 0,
      ),
      'element_view_per_role' => 0,
      'element_view_roles' => array(
        1 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        2 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
48
        26 => array(
49 50 51 52 53 54 55 56 57 58 59 60 61
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        5 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
62
        21 => array(
63 64 65 66 67 68
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
69
        24 => array(
70 71 72 73 74 75 76 77 78 79 80 81 82
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        6 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
83
        18 => array(
84 85 86 87 88 89 90 91 92 93 94 95 96
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        7 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
97
        19 => array(
98 99 100 101 102 103
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
104
        20 => array(
105 106 107 108 109 110 111 112 113 114 115 116 117
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        3 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
118
        9 => array(
119 120 121 122 123 124
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
125
        11 => array(
126 127 128 129 130 131
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
132
        8 => array(
133 134 135 136 137 138
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
139
        17 => array(
140 141 142 143 144 145 146 147 148 149 150 151 152
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        4 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
153
        10 => array(
154 155 156 157 158 159
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
160
        12 => array(
161 162 163 164 165 166
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
167
        13 => array(
168 169 170 171 172 173
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
174
        14 => array(
175 176 177 178 179 180
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
181
        16 => array(
182 183 184 185 186 187
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
188
        15 => array(
189 190 191 192 193 194
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
195
        23 => array(
196 197 198 199 200 201
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
202
        25 => array(
203 204 205 206 207 208
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
209
        22 => array(
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
      ),
      'element_edit' => array(
        1 => 1,
        3 => 0,
      ),
      'element_edit_per_role' => 0,
      'element_edit_roles' => array(
        1 => array(
          1 => 1,
          3 => 0,
        ),
        2 => array(
          1 => 1,
          3 => 0,
        ),
231
        26 => array(
232 233 234 235 236 237 238
          1 => 1,
          3 => 0,
        ),
        5 => array(
          1 => 1,
          3 => 0,
        ),
239
        21 => array(
240 241 242
          1 => 1,
          3 => 0,
        ),
243
        24 => array(
244 245 246 247 248 249 250
          1 => 1,
          3 => 0,
        ),
        6 => array(
          1 => 1,
          3 => 0,
        ),
251
        18 => array(
252 253 254 255 256 257 258
          1 => 1,
          3 => 0,
        ),
        7 => array(
          1 => 1,
          3 => 0,
        ),
259
        19 => array(
260 261 262
          1 => 1,
          3 => 0,
        ),
263
        20 => array(
264 265 266 267 268 269 270
          1 => 1,
          3 => 0,
        ),
        3 => array(
          1 => 1,
          3 => 0,
        ),
271
        9 => array(
272 273 274
          1 => 1,
          3 => 0,
        ),
275
        11 => array(
276 277 278
          1 => 1,
          3 => 0,
        ),
279
        8 => array(
280 281 282
          1 => 1,
          3 => 0,
        ),
283
        17 => array(
284 285 286 287 288 289 290
          1 => 1,
          3 => 0,
        ),
        4 => array(
          1 => 1,
          3 => 0,
        ),
291
        10 => array(
292 293 294
          1 => 1,
          3 => 0,
        ),
295
        12 => array(
296 297 298
          1 => 1,
          3 => 0,
        ),
299
        13 => array(
300 301 302
          1 => 1,
          3 => 0,
        ),
303
        14 => array(
304 305 306
          1 => 1,
          3 => 0,
        ),
307
        16 => array(
308 309 310
          1 => 1,
          3 => 0,
        ),
311
        15 => array(
312 313 314
          1 => 1,
          3 => 0,
        ),
315
        23 => array(
316 317 318
          1 => 1,
          3 => 0,
        ),
319
        25 => array(
320 321 322
          1 => 1,
          3 => 0,
        ),
323
        22 => array(
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373
          1 => 1,
          3 => 0,
        ),
      ),
      'selector' => '',
      'values_set' => 1,
      'value_form' => 'Other',
      'value' => array(
        0 => array(
          'value' => 'Other',
        ),
      ),
      'values' => array(),
    ),
  );

  $items["node:uw_virtual_site_homepage:1"] = array(
    'entity' => 'node',
    'bundle' => 'uw_virtual_site_homepage',
    'dependent' => 'field_uw_other_faculty',
    'dependee' => 'field_uw_faculty_list_logo',
    'options' => array(
      'state' => 'visible',
      'condition' => 'value',
      'grouping' => 'AND',
      'effect' => 'show',
      'effect_options' => array(),
      'element_view' => array(
        1 => 1,
        2 => 2,
        5 => 0,
        3 => 0,
        4 => 0,
      ),
      'element_view_per_role' => 0,
      'element_view_roles' => array(
        1 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        2 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
374
        26 => array(
375 376 377 378 379 380 381 382 383 384 385 386 387
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        5 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
388
        21 => array(
389 390 391 392 393 394
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
395
        24 => array(
396 397 398 399 400 401 402 403 404 405 406 407 408
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        6 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
409
        18 => array(
410 411 412 413 414 415 416 417 418 419 420 421 422
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        7 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
423
        19 => array(
424 425 426 427 428 429
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
430
        20 => array(
431 432 433 434 435 436 437 438 439 440 441 442 443
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        3 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
444
        9 => array(
445 446 447 448 449 450
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
451
        11 => array(
452 453 454 455 456 457
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
458
        8 => array(
459 460 461 462 463 464
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
465
        17 => array(
466 467 468 469 470 471 472 473 474 475 476 477 478
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
        4 => array(
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
479
        10 => array(
480 481 482 483 484 485
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
486
        12 => array(
487 488 489 490 491 492
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
493
        13 => array(
494 495 496 497 498 499
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
500
        14 => array(
501 502 503 504 505 506
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
507
        16 => array(
508 509 510 511 512 513
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
514
        15 => array(
515 516 517 518 519 520
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
521
        23 => array(
522 523 524 525 526 527
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
528
        25 => array(
529 530 531 532 533 534
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
535
        22 => array(
536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556
          1 => 1,
          2 => 2,
          5 => 0,
          3 => 0,
          4 => 0,
        ),
      ),
      'element_edit' => array(
        1 => 1,
        3 => 0,
      ),
      'element_edit_per_role' => 0,
      'element_edit_roles' => array(
        1 => array(
          1 => 1,
          3 => 0,
        ),
        2 => array(
          1 => 1,
          3 => 0,
        ),
557
        26 => array(
558 559 560 561 562 563 564
          1 => 1,
          3 => 0,
        ),
        5 => array(
          1 => 1,
          3 => 0,
        ),
565
        21 => array(
566 567 568
          1 => 1,
          3 => 0,
        ),
569
        24 => array(
570 571 572 573 574 575 576
          1 => 1,
          3 => 0,
        ),
        6 => array(
          1 => 1,
          3 => 0,
        ),
577
        18 => array(
578 579 580 581 582 583 584
          1 => 1,
          3 => 0,
        ),
        7 => array(
          1 => 1,
          3 => 0,
        ),
585
        19 => array(
586 587 588
          1 => 1,
          3 => 0,
        ),
589
        20 => array(
590 591 592 593 594 595 596
          1 => 1,
          3 => 0,
        ),
        3 => array(
          1 => 1,
          3 => 0,
        ),
597
        9 => array(
598 599 600
          1 => 1,
          3 => 0,
        ),
601
        11 => array(
602 603 604
          1 => 1,
          3 => 0,
        ),
605
        8 => array(
606 607 608
          1 => 1,
          3 => 0,
        ),
609
        17 => array(
610 611 612 613 614 615 616
          1 => 1,
          3 => 0,
        ),
        4 => array(
          1 => 1,
          3 => 0,
        ),
617
        10 => array(
618 619 620
          1 => 1,
          3 => 0,
        ),
621
        12 => array(
622 623 624
          1 => 1,
          3 => 0,
        ),
625
        13 => array(
626 627 628
          1 => 1,
          3 => 0,
        ),
629
        14 => array(
630 631 632
          1 => 1,
          3 => 0,
        ),
633
        16 => array(
634 635 636
          1 => 1,
          3 => 0,
        ),
637
        15 => array(
638 639 640
          1 => 1,
          3 => 0,
        ),
641
        23 => array(
642 643 644
          1 => 1,
          3 => 0,
        ),
645
        25 => array(
646 647 648
          1 => 1,
          3 => 0,
        ),
649
        22 => array(
650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667
          1 => 1,
          3 => 0,
        ),
      ),
      'selector' => '',
      'values_set' => 1,
      'value_form' => 'Other',
      'value' => array(
        0 => array(
          'value' => 'Other',
        ),
      ),
      'values' => array(),
    ),
  );

  return $items;
}