Created
September 18, 2014 18:07
-
-
Save gregmercer/c258de708ac141d2ab65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Code for the GSB Resources feature. | |
*/ | |
include_once 'gsb_resources.features.inc'; | |
require_once dirname(__FILE__) . '/gsb_resources.formatters.inc'; | |
/** | |
* Implement hook_resources_type_info(). | |
* | |
* @return array | |
*/ | |
function gsb_resources_resources_type_info() { | |
$resource_types['resource_callout'] = array( | |
'label' => t('Callout'), | |
'scheme' => 'callout', | |
'use generic streamwrapper' => TRUE, | |
'handler' => 'ResourcesEntityHandler', | |
'icon' => 'callout.png', | |
'icon path' => drupal_get_path('module', 'gsb_resources') . '/assets', | |
); | |
} | |
/** | |
* Implement hook_resources_type_info_alter(). | |
* | |
* @return array | |
*/ | |
function gsb_resources_resources_type_info_alter() { | |
$resource_types['resource_twitter'] = array( | |
'label' => t('Twitter'), | |
'scheme' => 'twitter', | |
'unique_uri' => TRUE, | |
'handler' => 'ResourcesTwitterHandler', | |
'settings callback' => 'resources_resource_twitter_settings_form', | |
'icon' => 'twitter.png', | |
'icon path' => drupal_get_path('module', 'gsb_resources') . '/assets', | |
); | |
return $resource_types; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment