This file contains hidden or 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 | |
| $panels_minis = array( | |
| 'panels_mini_name', | |
| 'panels_mini_name_1', | |
| ); | |
| foreach ($panels_minis as $panels_mini_name) { | |
| if ($panels_mini = panels_mini_load($panels_mini_name)) { | |
| if ($panels_mini->export_type == EXPORT_IN_CODE + EXPORT_IN_DATABASE) { | |
| panels_mini_delete($panels_mini); |
This file contains hidden or 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
| tar zcvf files_backup.tar.gz sites/default/files --exclude 'sites/default/files/styles/*' --exclude 'sites/default/files/css/*' --exclude 'sites/default/files/js/*' --exclude 'sites/default/files/tmp/*' |
This file contains hidden or 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'); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; | |
| /** |