This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

how do you know a module is enabled

i want to know if there is a function to determine if a particular module
is enabled or not. I'm not being lasy i have searched but to no avail.

Book Recommendation System

A user I host has sent me the following request:

Web typography, i18n (Czech and Smartypants)

Hello! When I decided to write the following, I hesitated for a moment: it is a forum topic, it is also an issue, and it could be a project.

The question I have relates to web typography. I have looked at the Smartypants module, which does some useful things. But what it does is directed mainly at content in English. So what about other languages? How could one internationalize Smartypants?

I am actually about to do harm to Smartypants and try to add some features that reflect the needs and requirements of Czech typography. It might work for me, but I am sure other languages have also typographic rules.

What do I mean by typographic rules? In Czech, for instance, a line should not end with single-letter conjunctions or prepositions.
So a line ending in " k"

is considered ugly. Other rules such as this one apply and are generally observed.

While Smartypants does something similar, it would be a rather cumbersome solution to put all sorts of options and rules in it for all sorts of languages. One would really need a way of making Smartypants recognize what is the language of the content (or parts thereof! - and this is a significant point: a node could have text in one, but also two or more languages, so something like a tag to mark the language of text would be great).

That's where I think the whole solution would need collaboration from the i18n module. So that Drupal multi-lingual webs could display the content in the right language and in the right (correct) way.

Pay for module

What would it cost to have someone develop me a module? I'm needing a module like http://www.remository.com/ (its a module for joomla) but with a few added features.

Why can't I view the nodes of this module?

I'm making my first node module, but when I fill in the fields and press "submit", I see no content created?
could someone look at my code and tell me if I'm doing something wrong?

Any help would be most appreciated!

<?php

/**
* @file
* Enables users to submit space share tasks.
*/

/**
* Implementation of hook_help().
*/
function sstask_help($section) {
switch ($section) {
case 'admin/modules#description':
return t('Enables the creation of spaceshare tasks.');
case 'node/add#sstask':
return t('Create a spaceshare task.');
}
}

/**
* Implementation of hook_node_name().
*/
function sstask_node_name($node) {
return t('spaceshare task');
}

/**
* Implementation of hook_perm().
*/
function sstask_perm() {
return array('create spaceshare tasks', 'edit own spaceshare tasks');
}

/**
* Implementation of hook_access().
*/
function sstask_access($op, $node) {
global $user;

if ($op == 'create') {
return user_access('create spaceshare tasks');
}

if ($op == 'update' || $op == 'delete') {
if (user_access('edit own spaceshare tasks') && ($user->uid == $node->uid)) {
return TRUE;
}
}
}

/**
* Implementation of hook_menu().
*/
function sstask_menu($may_cache) {
$items = array();

if ($may_cache) {
$items[] = array('path' => 'node/add/sstask', 'title' => t('spaceshare task'),'access' => user_access('create spaceshare tasks'));

module flexinode 4.7.0

The donwload file is empty, in the zip ther's only license txt file.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions