maestro-3.0.1-rc2/maestro.views.inc

maestro.views.inc
<?php

/**
 * @file
 * Provides the views data alter hooks that define Maestro fields.
 */

/**
 * Implements hook_views_data_alter().
 */
function maestro_views_data_alter(array &$data) {
  $data['maestro_process']['initiator_username'] = [
    'title' => t('Initiator'),
    'group' => t('Maestro Process'),
    'field' => [
      'title' => t('The initiator of the process.'),
      'help' => t('Translates the UID into a username for display.'),
      'id' => 'maestro_process_initiator_user',
    ],
  ];

  $data['maestro_process']['completed'] = [
    'title' => t('Completed Time'),
    'group' => t('Maestro Process'),
    'field' => [
      'title' => t('The completed time of the process.'),
      'help' => t('Shows a time if complete or blank if incomplete.'),
      'id' => 'maestro_process_completed_time',
    ],
  ];

  $data['maestro_process']['template_id_filter'] = [
    'title' => t('Maestro Template Name'),
    'group' => t('Maestro Process'),
    'filter' => [
      'title' => t('Filter by Maestro Template Name'),
      'help' => t('Provides a custom drop-down filter for filtering on template names/ids.'),
      'field' => 'template_id',
      'id' => 'maestro_process_template_filter',
    ],
  ];

  $data['maestro_production_assignments']['assignment_filter'] = [
    'title' => t('Filter by current user in assignments'),
    'group' => t('Maestro Production Assignments'),
    'filter' => [
      'title' => t('Filters by the current user\'s name and role in the Production Assignments entity'),
      'help' => t('Provides a filter to filter by the current user\'s name and role in the Production Assignments entity.'),
      'field' => 'assign_id',
      'id' => 'maestro_assignment_filter',
    ],
  ];

  $data['maestro_process']['admin_operations'] = [
    'title' => t('Admin Operations'),
    'group' => t('Maestro Process'),
    'field' => [
      'title' => t('Administrative Operations'),
      'help' => t('Provides Process based admin operations.'),
      'id' => 'maestro_admin_operations',
    ],
  ];

  $data['maestro_process']['process_details'] = [
    'title' => t('Maestro Process Details'),
    'group' => t('Maestro Process'),
    'field' => [
      'title' => t('Show the Maestro Process Details'),
      'help' => t('Shows the status bar (if applicable) and any views configured.'),
      'id' => 'maestro_process_process_details',
    ],
  ];

  $data['maestro_queue']['active_handler'] = [
    'title' => t('Active Handler'),
    'group' => t('Maestro Queue'),
    'field' => [
      'title' => t('The Active Task Handler'),
      'help' => t('Tries to provide a link to the appropriate handler.'),
      'id' => 'maestro_active_handler',
    ],
  ];

  $data['maestro_queue']['active_assignments'] = [
    'title' => t('Active Assignments'),
    'group' => t('Maestro Queue'),
    'field' => [
      'title' => t('The Active Assignees of this task'),
      'help' => t('Lists those assigned to the current task being listed.'),
      'id' => 'maestro_active_assignments',
    ],
  ];

  $data['maestro_queue']['admin_operations'] = [
    'title' => t('Admin Operations'),
    'group' => t('Maestro Queue'),
    'field' => [
      'title' => t('Administrative Operations'),
      'help' => t('Provides links to do things such as task reassignment, tracing of processes etc..'),
      'id' => 'maestro_admin_operations',
    ],
  ];

  $data['maestro_queue']['completion_time'] = [
    'title' => t('Formatted Completion Time'),
    'group' => t('Maestro Queue'),
    'field' => [
      'title' => t('Formatted Completion Time'),
      'help' => t("Provides the completion time in the user's default time format"),
      'id' => 'maestro_completed_timestamp',
    ],
  ];

  $data['maestro_queue']['started_time'] = [
    'title' => t('Formatted Started Time'),
    'group' => t('Maestro Queue'),
    'field' => [
      'title' => t('Formatted Started Time'),
      'help' => t("rovides the started time in the user's default time format"),
      'id' => 'maestro_started_timestamp',
    ],
  ];

  $data['maestro_queue']['who_completed'] = [
    'title' => t('Who completed the task'),
    'group' => t('Maestro Queue'),
    'field' => [
      'title' => t('The user who completed the task'),
      'help' => t('Provides a few options to show who completed the task.'),
      'id' => 'maestro_user_who_completed',
    ],
  ];

  $data['maestro_entity_identifiers']['entity_label'] = [
    'title' => t('Label of the Entity'),
    'group' => t('Maestro Entity Identifiers'),
    'field' => [
      'title' => t('Label of the Entity'),
      'help' => t('Provides the label of the entity which is pointed to by the entity identifiers entry.'),
      'id' => 'maestro_entity_identifiers_label',
    ],
  ];

  $data['maestro_entity_identifiers']['entity_edit_link'] = [
    'title' => t('Edit Link to Entity'),
    'group' => t('Maestro Entity Identifiers'),
    'field' => [
      'title' => t('Edit Link to Entity'),
      'help' => t('If the user has the rights to edit, an edit link is generated.'),
      'id' => 'maestro_entity_identifiers_edit_link',
    ],
  ];
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc