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 | |
$og_mem = og_membership_create($group_type, $gid, $entity_type, $etid, $field_name); | |
og_membership_save($og_mem); | |
dpm($og_mem); | |
og_membership_delete($og_mem->id); |
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
#bible.conf | |
server { | |
listen 80; | |
server_name bible.six-gs.com ; | |
client_max_body_size 10M; | |
location / { | |
proxy_pass http://localhost:2777/; | |
proxy_set_header Host $host; |
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
/** | |
* @file | |
* Contains \Drupal\instagram_block\Form\InstagramBlockForm. | |
*/ | |
namespace Drupal\instagram_block\Form; | |
use Drupal\Core\Form\ConfigFormBase; | |
/** |
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
function instagram_block_menu() { | |
$items['admin/config/content/instagram_block'] = array( | |
'title' => 'Instagram Block', | |
'description' => 'Configuration page for Instagram Block.', | |
'router_name' => 'instagram_block_admin_config_form', | |
); | |
return $items; | |
} |
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
instagram_block_admin_config_form: | |
path: '/admin/config/content/instagram_block' | |
defaults: | |
_form: 'Drupal\instagram_block\Form\InstagramBlockForm' | |
requirements: | |
_permission: 'administer site configuration' |
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
/** | |
* @file | |
* Contains \Drupal\instagram_block\Plugin\Block\InstagramBlockBlock. | |
*/ | |
namespace Drupal\instagram_block\Plugin\Block; | |
use Drupal\block\BlockBase; | |
use Drupal\block\Annotation\Block; | |
use Drupal\Core\Annotation\Translation; |
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
/** | |
* @file | |
* Default theme implementation of an Instagram image link. | |
* | |
* Available variables: | |
* - data: The entire data array returned from the Instagram API request. | |
* - href: The url to the Instagram post page. | |
* - src: The source url to the instagram image. | |
* - width: The display width of the image. | |
* - height: The display height of the image. |
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
{# | |
/** | |
* @file | |
* Default theme implementation of an Instagram image link. | |
* | |
* Available variables: | |
* - data: The entire data array returned from the Instagram API request. | |
* - href: The url to the Instagram post page. | |
* - src: The source url to the instagram image. | |
* - width: The display width of the image. |
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 | |
/** | |
* Code snippet for field create update hook. | |
*/ | |
function module_update_7001() { | |
$t = get_t(); | |
$fields = array(); |
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 | |
global $user; | |
dpm(user_pass_reset_url($user) . '/login'); |
OlderNewer