Paul Booker

Primary tabs

Articles from Paul Booker

Showing files that have changed on the live server:

git status

Looking for code execution attempts via menu_router:

select * from menu_router where access_callback = 'file_put_contents'

Showing files that have changed on the live server:

git status

Looking for code execution attempts via menu_router:

select * from menu_router where access_callback = 'file_put_contents'

an object;

.. is defined;

An ‘object’ is an instance of a ‘class’. You define a class using the code below.

class parentClass
{
// methods (functions) and properties (variables) go in here
}

/**
* Additional handler for push_notifications_mass_push_form_validate form validate.
*/
function mymodule_push_notifications_mass_push_form_validate($form, &$form_state) {
}

$base_url = 'http://localhost/test_endpoint';
$data = array(
'username' => 'admin',
'password' => 'pass',
);
$data = http_build_query($data, '', '&');
$headers = array();

$ip = $_SERVER['REMOTE_ADDR'];
$country_code = ip2country_get_country($ip); // using IP2Location
if (($country_code != ‘CN’) && drupal_is_front_page()) return TRUE;
return FALSE;
Tags:

/**
* Implements of hook_services_resources().
*/
function mymodule_services_services_resources() {
$api = array(
'frontpage' => array(
'operations' => array(

/**
* Implements hook_install().
*/
function artist_install() {
artist_install_vocabularies();
artist_install_terms();
}

To revert all features ..

drush fra -y
drush cc all

To revert a specific feature..

drush fr -y feature
drush cc all

To revert all features ..

drush fra -y
drush cc all

To revert a specific feature..

drush fr -y feature
drush cc all

Pages