Skip to content
Snippets Groups Projects
Select Git revision
  • b84b6e42cf2f6d64772f20d695258c83f0652fa1
  • 11.x default protected
  • 11.2.x protected
  • 10.6.x protected
  • 10.5.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
41 results

aggregator.module

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    bat_api.module 38.80 KiB
    <?php
    
    /**
     * @file
     * API access to booking data for BAT.
     */
    
    use Roomify\Bat\Event\Event;
    use Roomify\Bat\Calendar\Calendar;
    use Roomify\Bat\Store\DrupalDBStore;
    use Roomify\Bat\Unit\Unit;
    use Drupal\bat_fullcalendar\FullCalendarOpenStateEventFormatter;
    use Drupal\bat_fullcalendar\FullCalendarFixedStateEventFormatter;
    
    /**
     * Implements hook_ctools_plugin_api().
     */
    function bat_api_ctools_plugin_api($module = NULL, $api = NULL) {
      if ($module == "services" && $api == "services") {
        return array("version" => "3");
      }
    }
    
    /**
     * Implements hook_ctools_plugin_directory().
     */
    function bat_api_ctools_plugin_directory($owner, $plugin_type) {
      if ($owner == 'bat_api' && $plugin_type == 'bat_unit_field_handler') {
        return 'plugins/bat_unit_field_handler';
      }
    
      if ($owner == 'bat_api' && $plugin_type == 'bat_type_field_handler') {
        return 'plugins/bat_type_field_handler';
      }
    }
    
    /**
     * Implements hook_ctools_plugin_type().
     */
    function bat_api_ctools_plugin_type() {
      return array(
        'bat_unit_field_handler' => array(
          'use hooks' => TRUE,
        ),
        'bat_type_field_handler' => array(
          'use hooks' => TRUE,
        ),
      );
    }
    
    /**
     * Implements hook_permission().
     */
    function bat_api_permission() {
      return array(
        'access types index service' => array(
          'title' => t('Access types index service'),
          'description' => t('Access types index service.'),
        ),
        'access edit type service' => array(
          'title' => t('Access edit type service'),
          'description' => t('Access edit type service.'),
        ),
        'access add type service' => array(
          'title' => t('Access add type service'),
          'description' => t('Access add type service.'),
        ),
        'access units index service' => array(
          'title' => t('Access units index service'),
          'description' => t('Access units index service.'),