developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
6
results
Andrew Fletcher
•
By default the maximum file upload size is set to 2MB. It is not a Drupal issue, instead a php issue as upload_max_filesize is set in your php configuration (php.ini file). Therefore it is a server-side configuration. If you have access to the php configuration file, I would recommend to make the changes directly in it. Yet, on some occasions you cannot access the server configuration (on a shared hosting, for instance) and if you wish to alter some of your server...
Andrew Fletcher
•
Updating NPM packages using npm update and I'm seeing the following response
npm...
Andrew Fletcher
•
Recently I have been investigating one of my Linux server's speed using the...
Andrew Fletcher
•
JSON structure
Outlining the structure of the elements common attributes:...
Andrew Fletcher
•
If you are using theme_get_settings, such as:
$value =...
Andrew Fletcher
•
You can create a new date/time format by navigating to:
Admin -> Configuration -> Regional and Language -> Date and Time format and click on 'Add Format'.
Once you’ve created date format, you can control the way date is displayed on the node using preprocess function.
In {theme_name}.theme file, add the following lines
/**
* Implements hook_preprocess_node
*/
function THEME_NAME_preprocess_node(&$variables) {
// Getting the node creation time stamp from the node object.
$date...