You are here

panels_bootstrap_layout_builder.module in Panels Bootstrap Layout Builder 7

Same filename and directory in other branches
  1. 7.3 panels_bootstrap_layout_builder.module

File

panels_bootstrap_layout_builder.module
View source
<?php

/**
 * Implements hook_permission().
 */
function panels_bootstrap_layout_builder_permission() {
  return array(
    'administer layouts' => array(
      'title' => t('Administer bootstrap layouts'),
      'description' => t('Administer backend settings for bootstrap layouts.'),
    ),
  );
}

/**
 * Implements hook_ctools_plugin_directory().
 */
function panels_bootstrap_layout_builder_ctools_plugin_directory($owner, $plugin_type) {
  if ($owner == 'panels' && $plugin_type == 'layouts') {
    return "plugins/{$plugin_type}";
  }
}

/**
 * Implementation of hook_ctools_plugin_api().
 *
 * Tell CTools that we support the default_panels_bootstrap_layout_breakpoint and
 * default_panels_layout APIs.
 */
function panels_bootstrap_layout_builder_ctools_plugin_api($owner, $api) {
  if ($owner == 'panels' && $api == 'layouts') {
    return array(
      'version' => 1,
    );
  }
}