You are here

function sassy_bootstrap_library in Sassy 7.3

Same name and namespace in other branches
  1. 7.2 extensions/bootstrap/sassy_bootstrap.module \sassy_bootstrap_library()

Implements hook_library().

File

sassy_bootstrap/sassy_bootstrap.module, line 36

Code

function sassy_bootstrap_library() {
  $path = drupal_get_path('module', 'sassy_bootstrap');
  $return = array();
  $all = array();
  foreach (array(
    'alerts',
    'dropdown',
    'modal',
    'popover',
    'scrollspy',
    'tabs',
    'twipsy',
  ) as $lib) {
    $return['bootstrap-' . $lib] = array(
      'title' => 'Bootstrap ' . ucwords($lib),
      'website' => 'http://twitter.github.com/bootstrap/javascript.html#' . $lib,
      'version' => '1.3.0',
      'js' => array(
        $path . '/bootstrap/js/bootstrap-' . $lib . '.js',
      ),
      'css' => array(
        $path . '/bootstrap/lib/patterns.scss',
      ),
    );
    $all[] = $path . '/bootstrap/js/bootstrap-' . $lib . '.js';
  }
  $return['bootstrap'] = array(
    'title' => 'Bootstrap complete',
    'website' => 'http://twitter.github.com/bootstrap/',
    'version' => '1.3.0',
    'js' => $all,
    'css' => array(
      $path . '/boostrap/lib/bootstrap.scss',
    ),
  );
  return $return;
}