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 | |
// from: http://stackoverflow.com/questions/7372780/creating-a-ping-uptime-service-with-php | |
// TODO: add string recognition to check specific pages | |
//Config information | |
$email = "[email protected]"; | |
$server = "google.com"; //the address to test, without the "http://" |
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 | |
if(user_access('administer')) { | |
drupal_set_message("hello Admin!"); | |
} |
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 | |
$display_id = "departement"; | |
$args = array("view argument"); | |
$view = views_get_view('view machine name'); | |
$view->items_per_page = 0; // set number of items per page. 0 is all. | |
$content = $view->execute_display($display_id, $args); | |
print($content['content']); |
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 | |
$items = field_get_items('node', $node, 'field_yourfield', $node->language); |
NewerOlder